Skip to content

Commit

Permalink
Change ActiveRecord::SchemaMigration.table_name to AR::Base.connectio…
Browse files Browse the repository at this point in the history
…n.schema_migration.table_name
  • Loading branch information
dombesz committed Dec 18, 2023
1 parent dac15d9 commit 42931d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/migrate/10000000000000_to_v710_aggregated_migrations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def all_versions
end

def schema_migrations_table_name
ActiveRecord::SchemaMigration.table_name
ActiveRecord::Base.connection.schema_migration.table_name
end

def quoted_schema_migrations_table_name
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/migration_utils/migration_squasher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def all_versions
end

def schema_migrations_table_name
ActiveRecord::SchemaMigration.table_name
ActiveRecord::Base.connection.schema_migration.table_name
end

def quoted_schema_migrations_table_name
Expand Down

0 comments on commit 42931d7

Please sign in to comment.