trustieforge/db/migrate/20131017135933_add_index_to...

8 lines
188 B
Ruby

class AddIndexToUserGrades < ActiveRecord::Migration
def change
add_index :user_grades, :grade
add_index :user_grades, :project_id
add_index :user_grades, :user_id
end
end