Update `CurrentSettings` class that uses ENV
This commit is contained in:
parent
6877111544
commit
52e897dd14
|
|
@ -59,7 +59,7 @@ module Gitlab
|
|||
# When the DBMS is not available, an exception (e.g. PG::ConnectionBad) is raised
|
||||
active_db_connection = ActiveRecord::Base.connection.active? rescue false
|
||||
|
||||
ENV['USE_DB'] != 'false' &&
|
||||
ENV['SETUP_DB'] != 'false' &&
|
||||
active_db_connection &&
|
||||
ActiveRecord::Base.connection.table_exists?('application_settings')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue