summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200710102418_delete_user_callout_alerts_moved.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200710102418_delete_user_callout_alerts_moved.rb')
-rw-r--r--db/post_migrate/20200710102418_delete_user_callout_alerts_moved.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/db/post_migrate/20200710102418_delete_user_callout_alerts_moved.rb b/db/post_migrate/20200710102418_delete_user_callout_alerts_moved.rb
deleted file mode 100644
index ac605ba494e..00000000000
--- a/db/post_migrate/20200710102418_delete_user_callout_alerts_moved.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-# frozen_string_literal: true
-
-class DeleteUserCalloutAlertsMoved < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- class UserCallout < ActiveRecord::Base
- include EachBatch
-
- self.table_name = 'user_callouts'
- end
-
- BATCH_SIZE = 1_000
-
- # Inlined from Enums::UserCallout.feature_names
- FEATURE_NAME_ALERTS_MOVED = 20
-
- def up
- UserCallout.each_batch(of: BATCH_SIZE, column: :user_id) do |callout|
- callout.where(feature_name: FEATURE_NAME_ALERTS_MOVED).delete_all
- end
- end
-
- def down
- # no-op
- end
-end