You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to do a rake db:migrate and got the following
undefined method `database_authenticatable' for #ActiveRecord::ConnectionAdapters::TableDefinition:0x1032ebce8
i had started by creating an Account model instead of the normal User model, then just tried to run rake db:migrate ...
At this point the log says that code was updated 10 hours ago, so I hope this is only temporary.
Thanks,
Matenia
EDIT: I'm using Rails 3.0.3 and Ruby 1.8.7
The text was updated successfully, but these errors were encountered:
Have you generated devise initializer using rails g devise:install. If you are getting this error, it is probably because you are not requiring 'devise/orm/active_record' in an initializer before running migrations.
I found another instance where this can pop up. I intitially was using the devise with ActiveRecord and I had a migration that included the devise fields. I then switched to use Mongoid instead of ActiveRecord. I fixed the problem by removing the migration containing the devise fields.
I tried to do a rake db:migrate and got the following
undefined method `database_authenticatable' for #ActiveRecord::ConnectionAdapters::TableDefinition:0x1032ebce8
i had started by creating an Account model instead of the normal User model, then just tried to run rake db:migrate ...
At this point the log says that code was updated 10 hours ago, so I hope this is only temporary.
Thanks,
Matenia
EDIT: I'm using Rails 3.0.3 and Ruby 1.8.7
The text was updated successfully, but these errors were encountered: