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

Remove use of `USE_DB` environment variable in code

parent c2083b79
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -59,10 +59,8 @@ 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['SETUP_DB'] != 'false' &&
active_db_connection &&
ActiveRecord::Base.connection.table_exists?('application_settings')
ActiveRecord::Base.connection.table_exists?('application_settings')
rescue ActiveRecord::NoDatabaseError
false
end
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