Merge pull request #4518 from betagouv/4482-echec-initilaisation-env-dev

Fixes missing database on initialization: closes #4482.
This commit is contained in:
Alexandre Friquet 2019-11-14 17:17:18 +01:00 committed by GitHub
commit 1083a756c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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