From dbddd69295d605167fc53e357ed0da7933cc751d Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 16 Jun 2017 15:13:09 -0500 Subject: Partially revert 1e8dbd46 See https://gitlab.com/gitlab-org/gitlab-ce/issues/33736#note_32561501 --- lib/gitlab/current_settings.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/gitlab/current_settings.rb b/lib/gitlab/current_settings.rb index 48735fd197d..2fd5452dd78 100644 --- a/lib/gitlab/current_settings.rb +++ b/lib/gitlab/current_settings.rb @@ -62,8 +62,7 @@ module Gitlab active_db_connection = ActiveRecord::Base.connection.active? rescue false active_db_connection && - ActiveRecord::Base.connection.table_exists?('application_settings') && - !ActiveRecord::Migrator.needs_migration? + ActiveRecord::Base.connection.table_exists?('application_settings') rescue ActiveRecord::NoDatabaseError false end -- cgit v1.2.1