且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Heroku、PostgreSQL 和 Rails 5 上运行迁移时出错

更新时间:2021-10-04 09:36:35

好像你的应用没有提供数据库,你需要添加一个:

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