Gemfile中有一段代码:
group :production do
gem 'pg'
gem 'mysql2'
end
我执行'捆绑安装',一切都很好。但是当我尝试制作'RAILS_ENV =生产包exec rake db:migrate'时,我收到消息:Specified 'mysql2' for database adapter, but the gem is not loaded. Add
gem'mysql2'to your Gemfile.
有什么问题?我该如何解决?谢谢!