A platform for community discussion. Free, open, simple.
FIX: PostgreSQL fallback was broken due to Rails masking exception (#9633)
Rafael dos Santos Silvad59d1704527d
diff --git a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rbindex b8bfb629099..7cc4dce92bd 100644--- a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb+++ b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb@@ -154,7 +154,7 @@ module ActiveRecordbeginconnection = postgresql_connection(config)fallback_handler.initialized ||= true- rescue PG::ConnectionBad => e+ rescue ::ActiveRecord::NoDatabaseError, PG::ConnectionBad => efallback_handler.master_downfallback_handler.verify_master