debian-mirror-gitlab/db/post_migrate/20170526185858_create_index_in_pipeline_stages.rb
2019-02-15 15:39:39 +05:30

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