rails 3.0.x 和mysql2 0.3.x的错误

rails 3.0.x  mysql2 0.3.x 执行rake db:create 报如下错误:
[size=medium]WARNING: This version of mysql2 (0.3.2) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1
WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x[/size]

解决的方案是在Gemfile中,增加如下代码:
[size=medium]gem 'mysql2','< 0.3'[/size]

修改有bundle一下

你可能感兴趣的:(Ruby,ActiveRecord,Rails)