Commit dbddd692 authored by Robert Speicher's avatar Robert Speicher
parent 442bd265
...@@ -62,8 +62,7 @@ module Gitlab ...@@ -62,8 +62,7 @@ module Gitlab
active_db_connection = ActiveRecord::Base.connection.active? rescue false active_db_connection = ActiveRecord::Base.connection.active? rescue false
active_db_connection && active_db_connection &&
ActiveRecord::Base.connection.table_exists?('application_settings') && ActiveRecord::Base.connection.table_exists?('application_settings')
!ActiveRecord::Migrator.needs_migration?
rescue ActiveRecord::NoDatabaseError rescue ActiveRecord::NoDatabaseError
false false
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment