20091017214107_add_missing_indexes_to_custom_fields.rb
9 lines
| 211 B
| text/x-ruby
|
RubyLexer
|
r2814 | class AddMissingIndexesToCustomFields < ActiveRecord::Migration | ||
def self.up | ||||
add_index :custom_fields, [:id, :type] | ||||
end | ||||
def self.down | ||||
remove_index :custom_fields, :column => [:id, :type] | ||||
end | ||||
end | ||||