Heroku Postgres Error: PGError: ERROR: relation “organizations” does not exist (ActiveRecord::StatementInvalid)

后端 未结 13 622
有刺的猬
有刺的猬 2020-11-27 14:27

I\'m having a problem deploying my Rails app to Heroku, where this error is thrown when trying to access the app:

PGError: ERROR: relation \"organiz

13条回答
  •  星月不相逢
    2020-11-27 14:38

    Are you using devise? I had this exact issue when upgrading to 2.0 - You have to manually change the migration file.

    https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style

提交回复
热议问题