You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
477 B
15 lines
477 B
1 year ago
|
class RemoveDataProtectionConfirmationUniqueIndex < ActiveRecord::Migration[7.0]
|
||
|
def up
|
||
|
remove_index :data_protection_confirmations,
|
||
|
%i[organisation_id data_protection_officer_id confirmed],
|
||
|
unique: true
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
add_index :data_protection_confirmations,
|
||
|
%i[organisation_id data_protection_officer_id confirmed],
|
||
|
unique: true,
|
||
|
name: "data_protection_confirmations_unique"
|
||
|
end
|
||
|
end
|