提交 84cfb33f 编写于 作者: S Stan Hu

Revert "Merge branch 'rs-revert-11842' into 'master'"

This reverts commit ad521bde, reversing
changes made to 3a38e5f1.
上级 f01c5d86
......@@ -62,7 +62,8 @@ module Gitlab
active_db_connection = ActiveRecord::Base.connection.active? rescue false
active_db_connection &&
ActiveRecord::Base.connection.table_exists?('application_settings')
ActiveRecord::Base.connection.table_exists?('application_settings') &&
!ActiveRecord::Migrator.needs_migration?
rescue ActiveRecord::NoDatabaseError
false
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册