123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::PendingMigrationConnection

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activerecord/lib/active_record/migration/pending_migration_connection.rb

Class Attribute Summary

Class Method Summary

Class Attribute Details

.primary_class?Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/pending_migration_connection.rb', line 13

def self.primary_class?
  false
end

Class Method Details

.current_preventing_writes

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/pending_migration_connection.rb', line 17

def self.current_preventing_writes
  false
end

.with_temporary_pool(db_config, &block)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/pending_migration_connection.rb', line 5

def self.with_temporary_pool(db_config, &block)
  pool = ActiveRecord::Base.connection_handler.establish_connection(db_config, owner_name: self)

  yield pool
ensure
  ActiveRecord::Base.connection_handler.remove_connection_pool(self.name)
end