Merge pull request #4518 from betagouv/4482-echec-initilaisation-env-dev
Fixes missing database on initialization: closes #4482.
This commit is contained in:
commit
1083a756c9
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ features = [
|
||||||
def database_exists?
|
def database_exists?
|
||||||
ActiveRecord::Base.connection
|
ActiveRecord::Base.connection
|
||||||
true
|
true
|
||||||
rescue ActiveRecord::NoDatabaseError
|
rescue ActiveRecord::NoDatabaseError, PG::ConnectionBad
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue