From 09b2cfbc13572250e4fdb480eb57da6534c4ddfc Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Fri, 20 Feb 2015 19:05:23 +0200 Subject: [PATCH] Removed deprication warning about establish connection --- lib/tasks/db.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 3108ad02f..73f217711 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -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