Skip to content

Commit c9c98a4

Browse files
authored
Merge pull request rails#46715 from eileencodes/fix-parallel-testing-databases
Fix parallel testing databases
2 parents 19b08e2 + f356e26 commit c9c98a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/tasks/database_tasks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def reconstruct_from_schema(db_config, format = ActiveRecord.schema_format, file
384384

385385
check_schema_file(file) if file
386386

387-
with_temporary_connection(db_config) do
387+
with_temporary_pool(db_config) do
388388
if schema_up_to_date?(db_config, format, file)
389389
truncate_tables(db_config)
390390
else

0 commit comments

Comments
 (0)