diff options
author | Olivier Gonzalez <ogonzalez@gitlab.com> | 2018-05-23 12:40:45 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-05-23 12:40:45 +0300 |
commit | 40dd12c7758c90ad124e68bd549027eac1973fe6 (patch) | |
tree | 505619ce665c92e43d14a74cdd875d0dd819423c /db | |
parent | f0fbdad9202b6dfdc437783f85d8c199ed069838 (diff) |
Resolve "Deprecate Gemnasium project service"
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20180514161336_remove_gemnasium_service.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20180514161336_remove_gemnasium_service.rb b/db/post_migrate/20180514161336_remove_gemnasium_service.rb new file mode 100644 index 00000000000..6d7806e8daa --- /dev/null +++ b/db/post_migrate/20180514161336_remove_gemnasium_service.rb @@ -0,0 +1,15 @@ +class RemoveGemnasiumService < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + disable_statement_timeout + + execute("DELETE FROM services WHERE type='GemnasiumService';") + end + + def down + # noop + end +end |