1 2 3 4 5
class AddIndexOnMediaAttachmentsAccountId < ActiveRecord::Migration[5.1] def change add_index :media_attachments, :account_id end end