Skip to content

Commit 73382f3

Browse files
committedApr 22, 2024·
Fix tests
1 parent f2f1c80 commit 73382f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎test/cases/schema_dumper_test_sqlserver.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def generate_schema_for_table(*table_names)
166166

167167
stream = StringIO.new
168168
ActiveRecord::SchemaDumper.ignore_tables = all_tables - table_names
169-
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.lease_connection, stream)
169+
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool, stream)
170+
170171
@generated_schema = stream.string
171172
yield @generated_schema if block_given?
172173
@schema_lines = Hash.new

0 commit comments

Comments
 (0)
Please sign in to comment.