1 2 3 4 5 6
class AddMoreMissingIndexes < ActiveRecord::Migration def change add_index :taggings, :taggable_type add_index :taggings, :tagger_type end end