summaryrefslogtreecommitdiff
path: root/db/post_migrate/20211207125331_remove_jobs_for_recalculate_vulnerabilities_occurrences_uuid.rb
blob: cc37f2dc65d7a7964a344b341e250312f23e3657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class RemoveJobsForRecalculateVulnerabilitiesOccurrencesUuid < Gitlab::Database::Migration[1.0]
  MIGRATION_NAME = 'RecalculateVulnerabilitiesOccurrencesUuid'

  def up
    delete_job_tracking(
      MIGRATION_NAME,
      status: %w[pending succeeded]
    )
  end

  def down
    # no-op
  end
end