Update `CurrentSettings` class that uses ENV

This commit is contained in:
Grzegorz Bizon 2016-09-22 17:25:52 +02:00
parent 6877111544
commit 52e897dd14
1 changed files with 1 additions and 1 deletions

View File

@ -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')