diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-21 16:50:26 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-21 16:50:26 +0200 |
commit | b80bf57d378aec82cc933df233a30e0390564419 (patch) | |
tree | b50b4514124e3e15b70019de832b63ce20afdd3b /db/migrate/20160421130527_disable_repository_checks.rb | |
parent | 53534682a30f7eff0f52f5e8f6bbef95e321ec07 (diff) | |
download | gitlab-ce-b80bf57d378aec82cc933df233a30e0390564419.tar.gz |
Disable 'repository check' feature in 8.7.0
It still causes too many false alarms.
Diffstat (limited to 'db/migrate/20160421130527_disable_repository_checks.rb')
-rw-r--r-- | db/migrate/20160421130527_disable_repository_checks.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20160421130527_disable_repository_checks.rb b/db/migrate/20160421130527_disable_repository_checks.rb new file mode 100644 index 00000000000..808a4b93c7c --- /dev/null +++ b/db/migrate/20160421130527_disable_repository_checks.rb @@ -0,0 +1,11 @@ +class DisableRepositoryChecks < ActiveRecord::Migration + def up + change_column_default :application_settings, :repository_checks_enabled, false + execute 'UPDATE application_settings SET repository_checks_enabled = false' + end + + def down + change_column_default :application_settings, :repository_checks_enabled, true + execute 'UPDATE application_settings SET repository_checks_enabled = true' + end +end |