Files
Redmine/db/migrate/20221012135202_add_index_to_custom_values.rb
2022-11-10 23:49:02 +00:00

7 lines
338 B
Ruby

class AddIndexToCustomValues < ActiveRecord::Migration[6.1]
def change
remove_index :custom_values, column: [:customized_type, :customized_id], name: :custom_values_customized, if_exists: true
add_index :custom_values, [:customized_type, :customized_id, :custom_field_id], name: :custom_values_customized_custom_field
end
end