Displaying 1 result from an estimated 1 matches for "addversions".
Did you mean:
addsessions
2007 Mar 25
1
Can't use models in migrations
...ned) is
giving the error
undefined method `create_versioned_table'' for
#<ActiveRecord::ConnectionAdapters::MysqlAdapter:0xb74a1d44>
What the hell is that about? create_versioned_table is a definition of
Post.. not bloody SqlAdapter whatever.
Ideas?
Thanks
-henry
# class AddVersions < ActiveRecord::Migration
# def self.up
# # create_versioned_table takes the same options hash
# # that create_table does
# Post.create_versioned_table
# end
#
# def self.down
# Post.drop_versione...