diff options
| author | Arthur Nogueira Neves <github@arthurnn.com> | 2016-05-06 15:50:50 -0500 |
|---|---|---|
| committer | Arthur Nogueira Neves <github@arthurnn.com> | 2016-05-06 15:50:50 -0500 |
| commit | fcb223dd53f75bc299c267341d09791be822b0a9 (patch) | |
| tree | 56a27d92ce3a48cb0e1104449f36b07f2896416b /activerecord/lib/active_record/tasks | |
| parent | bf876aa0b61995f1be9b0146df7db74bd34d46af (diff) | |
| parent | 36ce6aba980a176b03e675c157f51048985d4730 (diff) | |
| download | rails-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.rb | 4 |
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 |
