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

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

class AddPresentOnDefaultBranchToVulnerabilities < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  def up
    with_lock_retries do
      add_column :vulnerabilities, :present_on_default_branch, :boolean, default: true, null: false
    end
  end

  def down
    with_lock_retries do
      remove_column :vulnerabilities, :present_on_default_branch
    end
  end
end