Topic: acts_as_versioned not working

Hey all,

Ive done a gem install of acts_as_versioned, created my migration script

class AddVersions < ActiveRecord::Migration
    def self.up
        Task.create_versioned_table
    end

    def self.down
        Task.drop_versioned_table
    end
end


When I do a rake migrate I get the following

== AddVersions: migrating =====================================================
rake aborted!
undefined method `create_versioned_table' for Task:Class

Any ideas?

Re: acts_as_versioned not working

doh, nevermind, found it, needed to add in

require_gem 'acts_as_versioned'

in config/environment.rb