1 class AddMissingIndexesToAttachments < ActiveRecord::Migration
3 add_index :attachments, [:container_id, :container_type]
4 add_index :attachments, :author_id
8 remove_index :attachments, :column => [:container_id, :container_type]
9 remove_index :attachments, :author_id