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

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

class AddRuleIdxToScanResultPolicies < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  CONSTRAINT_NAME = "check_scan_result_policies_rule_idx_positive"

  def up
    add_column :scan_result_policies, :rule_idx, :smallint
  end

  def down
    remove_column :scan_result_policies, :rule_idx
  end
end