Skip to content
Snippets Groups Projects
Commit ff98c631 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre :palm_tree:
Browse files

Make sure that is no pending migrations in Gitlab::CurrentSettings

parent 333d3d9e
No related branches found
No related tags found
Loading
Pipeline #
......@@ -38,7 +38,9 @@ def connect_to_db?
true
end
use_db && ActiveRecord::Base.connection.active? && ActiveRecord::Base.connection.table_exists?('application_settings')
use_db && ActiveRecord::Base.connection.active? &&
!ActiveRecord::Migrator.needs_migration? &&
ActiveRecord::Base.connection.table_exists?('application_settings')
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment