运行 rake db:create 时 Arel 弃用警告
我正在尝试使用 mysql2 v 0.2.6 在 Rails 3.1 中创建一个应用程序。运行 rake db:create 时,出现以下错误:
DEPRECATION WARNING: Arel::Visitors::VISITORS is deprecated and will be removed.
Database adatpers should define a visitor_for method which returns the appropriate
visitor for the database. For example, MysqlAdapter.visitor_for(pool) returns
Arel::Visitors::MySQL.new(pool). (called from mon_synchronize at
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201)
我可以访问 MySQL 监视器,因此 gem 似乎已正确安装。这里还会发生什么?
谢谢!
I'm trying to create an app in Rails 3.1 with mysql2 v 0.2.6. When running rake db:create
, I get the following error:
DEPRECATION WARNING: Arel::Visitors::VISITORS is deprecated and will be removed.
Database adatpers should define a visitor_for method which returns the appropriate
visitor for the database. For example, MysqlAdapter.visitor_for(pool) returns
Arel::Visitors::MySQL.new(pool). (called from mon_synchronize at
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201)
I can access the MySQL monitor, so the gem appears to be installed correctly. What else could be going on here?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试更新您的 msql gem。
在 ./Gemfile
捆绑更新 mysql2
Try updating your msql gem.
In ./Gemfile
bundle update mysql2
在 gemfile 中使用下面指定的版本。
然后运行
use the below specified version in gemfile.
then run