1 2 3 4 5
class AddIndexOnIssuesParentId < ActiveRecord::Migration[4.2] def change add_index :issues, :parent_id end end