File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -638,9 +638,7 @@ def check_pending!(connection = Base.connection)
638
638
end
639
639
640
640
def load_schema_if_pending!
641
- all_configs = db_configs_in_current_env
642
-
643
- needs_update = !all_configs . all? do |db_config |
641
+ needs_update = !db_configs_in_current_env . all? do |db_config |
644
642
Tasks ::DatabaseTasks . schema_up_to_date? ( db_config , ActiveRecord . schema_format )
645
643
end
646
644
@@ -653,7 +651,7 @@ def load_schema_if_pending!
653
651
end
654
652
end
655
653
656
- check_pending_migrations ( db_configs : all_configs )
654
+ check_pending_migrations
657
655
end
658
656
659
657
def maintain_test_schema! # :nodoc:
@@ -679,9 +677,10 @@ def disable_ddl_transaction!
679
677
@disable_ddl_transaction = true
680
678
end
681
679
682
- def check_pending_migrations ( db_configs : db_configs_in_current_env ) # :nodoc:
680
+ def check_pending_migrations # :nodoc:
683
681
prev_db_config = Base . connection_db_config
684
- db_configs . each do |db_config |
682
+
683
+ db_configs_in_current_env . each do |db_config |
685
684
Base . establish_connection ( db_config )
686
685
check_pending!
687
686
end
You can’t perform that action at this time.
0 commit comments