Removed deprication warning about establish connection

This commit is contained in:
Priit Tark 2015-02-20 19:05:23 +02:00
parent 9e92cced85
commit 09b2cfbc13

View file

@ -41,7 +41,7 @@ namespace :db do
databases.each do |name|
begin
puts "\n---------------------------- #{name} ----------------------------------------\n"
ActiveRecord::Base.establish_connection(name)
ActiveRecord::Base.establish_connection(name.to_sym)
if ActiveRecord::Base.connection.table_exists?('schema_migrations')
puts 'Found tables, skip schema load!'
else