blob: 03e757c0ec155b6109f3d3d7e8b2677dac0f99c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class RemoveRedundantPipelinesIndex < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
remove_concurrent_index_by_name :ci_pipelines, :index_ci_pipelines_on_project_id_and_created_at
end
def down
add_concurrent_index :ci_pipelines, [:project_id, :created_at]
end
end
|