Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arel Deprecation Warning when running rake db:create

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!

like image 216
Beth Avatar asked Sep 23 '11 01:09

Beth


1 Answers

Try updating your msql gem.

In ./Gemfile

gem require 'mysql2', '~> 0.3.6'

bundle update mysql2

like image 73
raavd Avatar answered Oct 02 '22 23:10

raavd