Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20220510121338_remove_threat_monitoring_alerts.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff171ee516c80c83485d5bc00f3adfe8a4b17eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class RemoveThreatMonitoringAlerts < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    execute("DELETE FROM alert_management_alerts WHERE domain = 1")
  end

  def down
    # no-op
  end
end