BTH*_*ris 3 mysql rubygems ruby-on-rails ruby-on-rails-3
任何帮助将不胜感激,当我运行"生成模型"命令时,我收到以下消息:
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
Run Code Online (Sandbox Code Playgroud)
有没有办法更新mysql2版本,所以它适用于rails 3.1?或者我可以将rails从3.1降级到3.0?
Die*_*ime 10
你需要跑
gem update mysql2
Run Code Online (Sandbox Code Playgroud)
或添加
gem "mysql2", "~> 0.3.11"
Run Code Online (Sandbox Code Playgroud)
到您的Gemfile并运行 bundle install
归档时间: |
|
查看次数: |
2909 次 |
最近记录: |