Activerecord 运行rake db:create时发出Arel弃用警告

Activerecord 运行rake db:create时发出Arel弃用警告,activerecord,windows-7,ruby-on-rails-3.1,mysql2,active-relation,Activerecord,Windows 7,Ruby On Rails 3.1,Mysql2,Active Relation,我正在尝试用mysql2v0.2.6在Rails3.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 datab

我正在尝试用mysql2v0.2.6在Rails3.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似乎安装正确。这里还会发生什么


谢谢

尝试更新您的msql gem

在./Gemfile中

gem require 'mysql2', '~> 0.3.6'

bundle update mysql2

在文件中使用下面指定的版本

gem 'mysql2', '~>0.3.10'
然后跑

bundle install

因此,这个版本的mysql2不希望正确安装…“未能构建本机扩展”以及所有这些。但是0.2.6安装得好吗?