From 42931d7c3a84f483f0894bf1e55810eb02bdbfdc Mon Sep 17 00:00:00 2001 From: Dombi Attila <83396+dombesz@users.noreply.github.com> Date: Tue, 19 Dec 2023 00:27:10 +0200 Subject: [PATCH] Change ActiveRecord::SchemaMigration.table_name to AR::Base.connection.schema_migration.table_name --- db/migrate/10000000000000_to_v710_aggregated_migrations.rb | 2 +- db/migrate/migration_utils/migration_squasher.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/10000000000000_to_v710_aggregated_migrations.rb b/db/migrate/10000000000000_to_v710_aggregated_migrations.rb index a8e184642b97..fa5b6382656b 100644 --- a/db/migrate/10000000000000_to_v710_aggregated_migrations.rb +++ b/db/migrate/10000000000000_to_v710_aggregated_migrations.rb @@ -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 diff --git a/db/migrate/migration_utils/migration_squasher.rb b/db/migrate/migration_utils/migration_squasher.rb index dd64da813add..4e95af5ea664 100644 --- a/db/migrate/migration_utils/migration_squasher.rb +++ b/db/migrate/migration_utils/migration_squasher.rb @@ -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