FIX: Don't trigger PG failover when running `db:migrate`.

FIX: Don’t trigger PG failover when running db:migrate.

diff --git a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb
index f76d921..186b342 100644
--- a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb
+++ b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb
@@ -138,6 +138,7 @@ end
 module ActiveRecord
   module ConnectionHandling
     def postgresql_fallback_connection(config)
+      return postgresql_connection(config) if ARGV.include?("db:migrate")
       fallback_handler = ::PostgreSQLFallbackHandler.instance
       config = config.symbolize_keys

GitHub sha: c96b617b