`
太平洋1986
  • 浏览: 21213 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
最近访客 更多访客>>
社区版块
存档分类
最新评论

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一下
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics