20091017213835_add_missing_indexes_to_user_preferences.rb
9 lines
| 201 B
| text/x-ruby
|
RubyLexer
|
r2814 | class AddMissingIndexesToUserPreferences < ActiveRecord::Migration | ||
def self.up | ||||
add_index :user_preferences, :user_id | ||||
end | ||||
def self.down | ||||
remove_index :user_preferences, :user_id | ||||
end | ||||
end | ||||