Commit 143b80bb authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not add indices for encrypted tokens in this iteration

parent bba97f82
# frozen_string_literal: true
class AddEncryptedRunnerTokensIndices < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :namespaces, :runners_token_encrypted, unique: true
add_concurrent_index :projects, :runners_token_encrypted, unique: true
add_concurrent_index :ci_runners, :token_encrypted, unique: true
end
def down
remove_concurrent_index :ci_runners, :token_encrypted
remove_concurrent_index :projects, :runners_token_encrypted
remove_concurrent_index :namespaces, :runners_token_encrypted
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment