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

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

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

  def up
    with_lock_retries do
      add_column :project_ci_cd_settings, :job_token_scope_enabled, :boolean, default: false, null: false
    end
  end

  def down
    with_lock_retries do
      remove_column :project_ci_cd_settings, :job_token_scope_enabled
    end
  end
end