summaryrefslogtreecommitdiff
path: root/db/post_migrate/20210812145010_reset_job_token_scope_enabled_again.rb
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