1 2 3 4 5
class AddIndexForumthreadIdOnThreadreplies < ActiveRecord::Migration def change add_index :threadreplies, :forumthread_id end end