undefined method `database_authenticatable' for #

后端 未结 5 1458
猫巷女王i
猫巷女王i 2020-12-30 22:17

I am using Active Admin gem for my small application based on Quiz. But when I execute rake db:migrate it gives me error. Following is the trace of the comm

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 22:33

    I also ran into this issue on my existing app as I tried to deploy to a new staging server.

    Ended up being that the Devise gem had been updated to 2.1 and I hadn't fixed the migration to work correctly with the new version.

    Be sure to read through their migration to 2.1 doc on their wiki -- https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.1

    Also, be sure to read through the doc for how to correctly adjust existing migrations -- https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style

提交回复
热议问题