1
0
miroir de https://github.com/redmine/redmine.git synchronisé 2024-08-07 21:06:46 +02:00
redmine/db/migrate/066_add_custom_value_customized_index.rb

10 lignes
278 B
Ruby

class AddCustomValueCustomizedIndex < ActiveRecord::Migration
def self.up
add_index :custom_values, [:customized_type, :customized_id], :name => :custom_values_customized
end
def self.down
remove_index :custom_values, :name => :custom_values_customized
end
end