Error when run migrations on Heroku, PostgreSQL with Rails 5

后端 未结 3 995
北恋
北恋 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:10

    It seems like database is not provided for your app, you need to add one:

    heroku addons:create heroku-postgresql
    

    You can verify the database was added to your application by running:

    heroku config --app your_app_name
    

提交回复
热议问题