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

后端 未结 13 535
有刺的猬
有刺的猬 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 15:00

    My heroku version:

    heroku --version
    #=> heroku-gem/2.29.0 (x86_64-linux) ruby/1.9.3
    

    In order to fix it just open your terminal and run:

    heroku pg:reset DATABASE --confirm YOUR_APP_NAME
    heroku run rake db:setup
    heroku restart
    heroku open
    
    0 讨论(0)
提交回复
热议问题