class AddPostIdIndexOnTopicLinks < ActiveRecord::Migration
  def up
    add_index :topic_links, :post_id
  end

  def down
    remove_index :topic_links, :post_id
  end
end

Add post_id index to topic_links
Add post_id index to topic_links
