Skip to content
Snippets Groups Projects
Commit 52e897dd authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Update `CurrentSettings` class that uses ENV

parent 68771115
No related branches found
No related tags found
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment