We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cc3a0 commit e7db645Copy full SHA for e7db645
activerecord/lib/active_record/migration.rb
@@ -638,7 +638,6 @@ def check_pending!(connection = Base.connection)
638
end
639
640
def load_schema_if_pending!
641
- current_db_config = Base.connection_db_config
642
all_configs = db_configs_in_current_env
643
644
needs_update = !all_configs.all? do |db_config|
@@ -654,9 +653,6 @@ def load_schema_if_pending!
654
653
655
656
657
- # Establish a new connection, the old database may be gone (db:test:prepare uses purge)
658
- Base.establish_connection(current_db_config)
659
-
660
check_pending_migrations(db_configs: all_configs)
661
662
0 commit comments