Devise migration on existing model

后端 未结 4 1285
北海茫月
北海茫月 2020-12-08 17:47

I\'m migrating from Authlogic to Devise.

UPDATED:

The migration of devise tries to re-create the table users, so i changed as you can see below the create_

4条回答
  •  死守一世寂寞
    2020-12-08 18:19

    I solved this by deleting Devise migration file but not removing it from Sublime. I then did a rails g migration remove_email_from_foo, thus removing email attribute. I then cancelled the Devise delete migration file which bought the migration file back in & ran a rake db:migrate. Devise attributes saved to model

提交回复
热议问题