Sha256: 583f4ff43c331cfe21849bb0ae9cf46787e286e4c5c87ea1f7bf201b499a26ed
Contents?: true
Size: 505 Bytes
Versions: 13
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module ActiveRecord class PendingMigrationConnection # :nodoc: def self.establish_temporary_connection(db_config, &block) pool = ActiveRecord::Base.connection_handler.establish_connection(db_config, owner_name: self) yield pool.connection ensure ActiveRecord::Base.connection_handler.remove_connection_pool(self.name) end def self.primary_class? false end def self.current_preventing_writes false end end end
Version data entries
13 entries across 13 versions & 4 rubygems