From d9680252b0e8ec0eb198108c131b9a646c5df07b Mon Sep 17 00:00:00 2001 From: Alexandre Friquet Date: Thu, 14 Nov 2019 09:17:39 +0100 Subject: [PATCH] Fixes missing database on initialization: closes #4482. --- config/initializers/flipper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index e8172d0da..df7bcfdd2 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -40,7 +40,7 @@ features = [ def database_exists? ActiveRecord::Base.connection true -rescue ActiveRecord::NoDatabaseError +rescue ActiveRecord::NoDatabaseError, PG::ConnectionBad false end