Error when run migrations on Heroku, PostgreSQL with Rails 5

后端 未结 3 994
北恋
北恋 2021-01-16 11:12

I deploy Rails 5 with PostgreSQL to free app in Heroku. This is my configuration from database.yml:

production:
  adapter: postgresql
  username         


        
3条回答
  •  [愿得一人]
    2021-01-16 12:11

    After delete old DB, you should execute this

    heroku pg:promote HEROKU_POSTGRESQL_NEW_DATABASE
    

    You can check your DB nickname by

    heroku pg:info
    

提交回复
热议问题