class AddMissingIndexesToUserPreferences < ActiveRecord::Migration
def self.up
add_index :user_preferences, :user_id
end
def self.down
remove_index :user_preferences, :user_id