fix: flipper initialization when db down

This commit is contained in:
simon lehericey 2023-08-31 12:12:49 +02:00
parent 3e193675aa
commit 4955f5d6ec

View file

@ -26,7 +26,7 @@ features = [
def database_exists?
ActiveRecord::Base.connection
true
rescue ActiveRecord::NoDatabaseError, PG::ConnectionBad
rescue ActiveRecord::ConnectionNotEstablished, ActiveRecord::NoDatabaseError, PG::ConnectionBad
false
end