class FavoritesUserIndex < ActiveRecord::Migration
def self.up
add_index :favorites, [:user_id]
end
def self.down
remove_index :favorites, [:user_id]