aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2016-05-06 15:50:50 -0500
committerArthur Nogueira Neves <github@arthurnn.com>2016-05-06 15:50:50 -0500
commitfcb223dd53f75bc299c267341d09791be822b0a9 (patch)
tree56a27d92ce3a48cb0e1104449f36b07f2896416b /activerecord/lib/active_record/tasks
parentbf876aa0b61995f1be9b0146df7db74bd34d46af (diff)
parent36ce6aba980a176b03e675c157f51048985d4730 (diff)
downloadrails-fcb223dd53f75bc299c267341d09791be822b0a9.tar.gz
rails-fcb223dd53f75bc299c267341d09791be822b0a9.tar.bz2
rails-fcb223dd53f75bc299c267341d09791be822b0a9.zip
Merge pull request #24844 from arthurnn/arthurnn/conn
Refactor connection handler
Diffstat (limited to 'activerecord/lib/active_record/tasks')
-rw-r--r--activerecord/lib/active_record/tasks/database_tasks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb
index 9aea5b360b..0df46d54df 100644
--- a/activerecord/lib/active_record/tasks/database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/database_tasks.rb
@@ -117,10 +117,10 @@ module ActiveRecord
end
def create_all
- old_pool = ActiveRecord::Base.connection_handler.retrieve_connection_pool(ActiveRecord::Base)
+ old_pool = ActiveRecord::Base.connection_handler.retrieve_connection_pool(ActiveRecord::Base.connection_specification_name)
each_local_configuration { |configuration| create configuration }
if old_pool
- ActiveRecord::Base.connection_handler.establish_connection(ActiveRecord::Base, old_pool.spec)
+ ActiveRecord::Base.connection_handler.establish_connection(old_pool.spec)
end
end