20121219095402_indices_for_notes.rb 156 Bytes Edit Raw Blame History 1 2 3 4 5 6 class IndicesForNotes < ActiveRecord::Migration def change add_index :notes, :commit_id add_index :notes, [:project_id, :noteable_type] end end