summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorTiger <twatson@gitlab.com>2019-08-01 16:20:35 +1000
committerTiger <twatson@gitlab.com>2019-08-08 09:47:07 +1000
commite3696bf20e4d646f46f847237da828eaee00253a (patch)
treebfb621c3f521cb8a68a6efd5a9f1f6bfef392870 /db
parenteec1ed522d4103ee7d347c305f1021db33173def (diff)
downloadgitlab-ce-e3696bf20e4d646f46f847237da828eaee00253a.tar.gz
Final removal of KubernetesService39217-remove-kubernetes-service-integration
Creating new records has been disabled, and all existing records been migrated to clusters as of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28534
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190801060809_delete_kubernetes_services.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20190801060809_delete_kubernetes_services.rb b/db/migrate/20190801060809_delete_kubernetes_services.rb
new file mode 100644
index 00000000000..018976584d4
--- /dev/null
+++ b/db/migrate/20190801060809_delete_kubernetes_services.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class DeleteKubernetesServices < ActiveRecord::Migration[5.2]
+ DOWNTIME = false
+
+ def up
+ Service.where(type: "KubernetesService").delete_all
+ end
+
+ def down
+ # no-op
+ end
+end