method

with_temporary_pool

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: DatabaseTasks
with_temporary_pool(db_config, clobber: false) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 514
        def with_temporary_pool(db_config, clobber: false)
          original_db_config = migration_class.connection_db_config
          pool = migration_class.connection_handler.establish_connection(db_config, clobber: clobber)

          yield pool
        ensure
          migration_class.connection_handler.establish_connection(original_db_config, clobber: clobber)
        end
Register or log in to add new notes.