Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Change ActiveRecord::SchemaMigration.table_name to AR::Base.connection.schema_migration.table_name

Dombi Attila49395b1aa2cc
diff --git a/db/migrate/10000000000000_to_v710_aggregated_migrations.rb b/db/migrate/10000000000000_to_v710_aggregated_migrations.rb
index 544e6585d42..db910bc7988 100644
--- a/db/migrate/10000000000000_to_v710_aggregated_migrations.rb
+++ b/db/migrate/10000000000000_to_v710_aggregated_migrations.rb
@@ -192,7 +192,7 @@ class ToV710AggregatedMigrations < ActiveRecord::Migration[5.1]
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 f2a7784faa0..29e9d7751cc 100644
--- a/db/migrate/migration_utils/migration_squasher.rb
+++ b/db/migrate/migration_utils/migration_squasher.rb
@@ -82,7 +82,7 @@ module Migration
end
def schema_migrations_table_name
- ActiveRecord::SchemaMigration.table_name
+ ActiveRecord::Base.connection.schema_migration.table_name
end
def quoted_schema_migrations_table_name