1 2 3 4 5
class AddIndexOnDiskFilenameToAttachments < ActiveRecord::Migration def change add_index :attachments, :disk_filename end end