summaryrefslogtreecommitdiff
path: root/db/post_migrate/20210628124505_reset_job_token_scope_enabled.rb
blob: 1176e704d0a46f67061514a1d4c1ea9472b8a58d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class ResetJobTokenScopeEnabled < 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
    # Irreversible
  end
end