2017-05-26 18:50:43 +00:00
|
|
|
class CreateIndexInPipelineStages < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_concurrent_index(:ci_stages, [:pipeline_id, :name])
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2017-06-05 12:54:39 +00:00
|
|
|
remove_concurrent_index(:ci_stages, [:pipeline_id, :name])
|
2017-05-26 18:50:43 +00:00
|
|
|
end
|
|
|
|
end
|