We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Migrator.current_version
SchemaMigration
1 parent 2abee30 commit 6e74098Copy full SHA for 6e74098
activerecord/lib/active_record/migration.rb
@@ -1405,9 +1405,8 @@ class << self
1405
1406
# For cases where a table doesn't exist like loading from schema cache
1407
def current_version
1408
- connection = ActiveRecord::Tasks::DatabaseTasks.migration_connection
1409
connection_pool = ActiveRecord::Tasks::DatabaseTasks.migration_connection_pool
1410
- schema_migration = SchemaMigration.new(connection)
+ schema_migration = SchemaMigration.new(connection_pool)
1411
internal_metadata = InternalMetadata.new(connection_pool)
1412
1413
MigrationContext.new(migrations_paths, schema_migration, internal_metadata).current_version
0 commit comments