【发布时间】:2018-12-03 00:01:28
【问题描述】:
我的数据库.yml
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: organic_tomatoes_development
pool: 5
username: root
password: password
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: organic_tomatoes_test
pool: 5
username: root
password: password
我在 heroku 上部署我的网站。
当我运行heroku run rake db:migrate
它给出了一个错误
ActiveRecord::AdapterNotSpecified: 'production' database is not configured. Available: ["development", "test"]
我该如何解决这个错误?
【问题讨论】:
-
@KickButtowski 我试过没有解决方案工作
标签: mysql ruby-on-rails ruby heroku heroku-cli