Make migration symmetric
This commit is contained in:
parent
666ddec9b2
commit
b47e666026
|
@ -8,7 +8,8 @@ class AddIndexToProjectDeployTokensDeployTokenId < ActiveRecord::Migration
|
|||
disable_ddl_transaction!
|
||||
|
||||
def up
|
||||
add_concurrent_index :project_deploy_tokens, :deploy_token_id
|
||||
# MySQL already has index inserted
|
||||
add_concurrent_index :project_deploy_tokens, :deploy_token_id if Gitlab::Database.postgresql?
|
||||
end
|
||||
|
||||
def down
|
||||
|
|
Loading…
Reference in New Issue