小编Bet*_*eth的帖子

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

我正在尝试使用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似乎正确安装.还有什么可以发生在这里?

谢谢!

activerecord windows-7 mysql2 active-relation ruby-on-rails-3.1

7
推荐指数
1
解决办法
633
查看次数