Skip to content

Commit 48b7493

Browse files
instanciate ActiveRecord::InternalMetadata with the right connection for Activerecord 7.1 or above
1 parent 5e2efd1 commit 48b7493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ def setup
3535
# only instanciate ActiveRecord::SchemaMigration with the right connection for Activerecord 7.1 or above
3636
if Gem::Requirement.new('>=7.1.0').satisfied_by?(Gem::Version.new(::ActiveRecord::VERSION::STRING))
3737
ActiveRecord::SchemaMigration.new(@connection).create_table
38+
ActiveRecord::InternalMetadata.new(@connection).create_table
3839
else
3940
ActiveRecord::SchemaMigration.create_table
41+
ActiveRecord::InternalMetadata.create_table
4042
end
41-
ActiveRecord::InternalMetadata.create_table
4243
ActiveRecord::Migration.verbose = false
4344
@connection.execute("SET statement_timeout TO '70s'")
4445
@connection.execute("SET lock_timeout TO '70s'")

0 commit comments

Comments
 (0)