blob: 7cc942c813b4056f6b2e171871205ca2012499ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class AddIndexToDeployTokensOnCreatorId < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = 'index_deploy_tokens_on_creator_id'
def up
add_concurrent_index :deploy_tokens, :creator_id, name: INDEX_NAME
end
def down
remove_concurrent_index :deploy_tokens, :creator_id, name: INDEX_NAME
end
end
|