blob: a930dde9a8300f17e59a82dcab2928b8bb23be12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class AddCreatedAtIndexToComplianceManagementFrameworks < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
INDEX_NAME = "i_compliance_frameworks_on_id_and_created_at"
def up
add_concurrent_index :compliance_management_frameworks,
[:id, :created_at, :pipeline_configuration_full_path],
name: INDEX_NAME
end
def down
remove_concurrent_index_by_name :compliance_management_frameworks, INDEX_NAME
end
end
|