canvas-lms/db/migrate/20111114164345_favorites_us...

10 lines
175 B
Ruby

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