gitlab-org--gitlab-foss/db/post_migrate/20170526185858_create_index...

16 lines
319 B
Ruby

class CreateIndexInPipelineStages < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index(:ci_stages, [:pipeline_id, :name])
end
def down
remove_concurrent_index(:ci_stages, [:pipeline_id, :name])
end
end