blob: d58d1d8348c8c3c3bda2767aa4a78ee602425774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class AddIndexToDeployTokensTokenEncrypted < ActiveRecord::Migration[5.1]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :deploy_tokens, :token_encrypted, unique: true, name: "index_deploy_tokens_on_token_encrypted"
end
def down
remove_concurrent_index_by_name :deploy_tokens, "index_deploy_tokens_on_token_encrypted"
end
end
|