blob: cbd0d120bb8b5866011ec87711fafb12c5ca40b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class CleanupAttentionRequestUserCallouts < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main
ATTENTION_REQUEST_CALLOUTS = [47, 48]
# 47 and 48 were removed with https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95446
def up
define_batchable_model('user_callouts')
.where(feature_name: ATTENTION_REQUEST_CALLOUTS)
.each_batch { |batch| batch.delete_all } # rubocop:disable Style/SymbolProc
end
def down
# Attention request feature has been reverted.
end
end
|