debian-mirror-gitlab/db/migrate/20200729202222_add_index_to_ci_pipeline_project_id_created_at.rb
2020-10-24 23:57:45 +05:30

18 lines
375 B
Ruby

# frozen_string_literal: true
class AddIndexToCiPipelineProjectIdCreatedAt < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :ci_pipelines, [:project_id, :created_at]
end
def down
remove_concurrent_index :ci_pipelines, [:project_id, :created_at]
end
end