diff options
Diffstat (limited to 'db/migrate/20160421130527_disable_repository_checks.rb')
-rw-r--r-- | db/migrate/20160421130527_disable_repository_checks.rb | 12 |
1 files changed, 12 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..7e65ddc45e7 --- /dev/null +++ b/db/migrate/20160421130527_disable_repository_checks.rb @@ -0,0 +1,12 @@ +# rubocop:disable all +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 |