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

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

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

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

  def down
    # no-op
  end
end