【发布时间】:2011-12-23 16:44:09
【问题描述】:
任何帮助将不胜感激,当我运行“生成模型”命令时,我收到以下消息:
WARNING: This version of mysql2 (0.2.18) isn't compatible with Rails 3.1 as the ActiveRecord adapter was pulled into Rails itself.
WARNING: Please use the 0.3.x (or greater) releases if you plan on using it in Rails >= 3.1.x
有没有办法更新 mysql2 版本使其适用于 rails 3.1?或者我可以将 rails 从 3.1 降级到 3.0?
【问题讨论】:
-
你试过updating the mysql2 gem 吗?从长远来看,这似乎是一个更好的战略。
标签: mysql ruby-on-rails ruby-on-rails-3 rubygems