Open brecke opened 14 years ago
+1 t.userstamps doesn't seem to work with change_table - just create_table
Just change vendor/plugins/userstamp/lib/migration_helper.rb to at the bottom read:
ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, Ddb::Userstamp::MigrationHelper) ActiveRecord::ConnectionAdapters::Table.send(:include, Ddb::Userstamp::MigrationHelper)
(i.e., add the last line)
cool, thanks.
There's still an issue with this, now apparently when creating the table, because the ActiveRecord::ConnectionAdapters::TableDefinition
line is missing. Would it be possible for you to just merge one of the two working pull requests #19 or #21?
Hi,
Is it possible to use t.userstamps with change_table instead of create_table in migrations? I'd like to use this with an existing database and I can't get it to work that way, i keep getting this error:
undefined method `userstamps' for #ActiveRecord::ConnectionAdapters::Table:0x102e99f78
What am i doing wrong? How can i fix this?
thanks in advance, _ miguel