1 2 3 4 5
class AddIndexOnMentionsStatusId < ActiveRecord::Migration[5.0] def change add_index :mentions, :status_id end end