class ActiveRecord::Migrator

Public Instance Methods

record_version_state_after_migrating(version) click to toggle source
# File lib/active_record/pt_osc_migration.rb, line 9
def record_version_state_after_migrating(version)
  ActiveRecord::Base.logger.debug 'Verifying active connections prior to recording version' if ActiveRecord::Base.logger
  ActiveRecord::Base.verify_active_connections! # Reconnect to DB if it's gone away while we were migrating.
  record_version_state_after_migrating_without_reconnect(version)
end
record_version_state_after_migrating_without_reconnect(version)