blob: 849dbab77db08019ba9d89ff1b44a1ef3d511aa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class IndexIncludeNetworkOnUserCreditCardValidations < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = 'index_user_credit_card_validations_meta_data_partial_match'
def up
add_concurrent_index :user_credit_card_validations,
[:expiration_date, :last_digits, :network, :credit_card_validated_at],
name: INDEX_NAME
end
def down
remove_concurrent_index_by_name :user_credit_card_validations, INDEX_NAME
end
end
|