File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,6 @@ def load_schema_if_pending!
657
657
# Establish a new connection, the old database may be gone (db:test:prepare uses purge)
658
658
Base . establish_connection ( current_db_config )
659
659
660
- # Ensure all migrations have succeeded
661
660
check_pending_migrations ( db_configs : all_configs )
662
661
end
663
662
Original file line number Diff line number Diff line change @@ -114,10 +114,9 @@ def test_with_multiple_database
114
114
CheckPending . new ( @app ) . call ( { } )
115
115
end
116
116
117
- begin
118
- ActiveRecord ::Base . establish_connection ( :secondary )
119
- quietly { run_migrations }
120
- end
117
+ ActiveRecord ::Base . establish_connection ( :secondary )
118
+ quietly { run_migrations }
119
+
121
120
ActiveRecord ::Base . establish_connection ( :primary )
122
121
123
122
@app . expect :call , nil , [ { } ]
You can’t perform that action at this time.
0 commit comments