运行rake db:create时出现Arel Deprecation警告

Bet*_*eth 7 activerecord windows-7 mysql2 active-relation ruby-on-rails-3.1

我正在尝试使用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)
Run Code Online (Sandbox Code Playgroud)

我可以访问MySQL监视器,因此gem似乎正确安装.还有什么可以发生在这里?

谢谢!

小智 1

尝试更新您的 msql gem。

在 ./Gemfile 中

gem require 'mysql2', '~> 0.3.6'
Run Code Online (Sandbox Code Playgroud)

捆绑更新 mysql2