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

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

class AddSecurityDashboardAccessLevelIntoProjectFeatures < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  PRIVATE_ACCESS_LEVEL = 10

  def up
    with_lock_retries do
      add_column :project_features, :security_and_compliance_access_level, :integer, default: PRIVATE_ACCESS_LEVEL, null: false
    end
  end

  def down
    with_lock_retries do
      remove_column :project_features, :security_and_compliance_access_level
    end
  end
end