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.
1 parent 644a218 commit 74a913aCopy full SHA for 74a913a
lib/database_cleaner/active_record/base.rb
@@ -15,7 +15,9 @@ def self.config_file_location
15
16
class Base < DatabaseCleaner::Strategy
17
def self.migration_table_name
18
- if Gem::Version.new("6.0.0") <= ::ActiveRecord.version
+ if Gem::Version.new("7.1.0") < ::ActiveRecord.version
19
+ ::ActiveRecord::Base.connection_pool.schema_migration.table_name
20
+ elsif Gem::Version.new("6.0.0") <= ::ActiveRecord.version
21
::ActiveRecord::Base.connection.schema_migration.table_name
22
else
23
::ActiveRecord::SchemaMigration.table_name
0 commit comments