mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Removed deprication warning about establish connection
This commit is contained in:
parent
9e92cced85
commit
09b2cfbc13
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue