Make migration symmetric
This commit is contained in:
parent
666ddec9b2
commit
b47e666026
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ class AddIndexToProjectDeployTokensDeployTokenId < ActiveRecord::Migration
|
||||||
disable_ddl_transaction!
|
disable_ddl_transaction!
|
||||||
|
|
||||||
def up
|
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
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
Loading…
Reference in a new issue