Fixes missing database on initialization: closes #4482.

This commit is contained in:
Alexandre Friquet 2019-11-14 09:17:39 +01:00
parent 40af20b733
commit d9680252b0

View file

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