【发布时间】:2015-01-13 07:46:44
【问题描述】:
在我的 gemfile 中:
group :development, :test,:production do
gem 'mysql2', '~> 0.3.16'
end
在日志中:
$ heroku run rake db:migrate
Running rake db:migrate attached to terminal... up, run.3758
rake aborted!
Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add gem 'mysql' to your Gemfile (and ensure its version is
at the minimum required by ActiveRecord).
我已经为应用程序添加了“cleardb”插件。现在我想使用它。但是,由于出现上述错误,我无法迁移到数据库。
【问题讨论】:
-
显示你的
database.yml
标签: mysql ruby-on-rails ruby-on-rails-4 heroku gem