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.

20221012135202_add_index_to_custom_values.rb 338B

123456
  1. class AddIndexToCustomValues < ActiveRecord::Migration[6.1]
  2. def change
  3. remove_index :custom_values, column: [:customized_type, :customized_id], name: :custom_values_customized, if_exists: true
  4. add_index :custom_values, [:customized_type, :customized_id, :custom_field_id], name: :custom_values_customized_custom_field
  5. end
  6. end