class ChangeQuotesToIntegerInAttachments < ActiveRecord::Migration[5.2] def change change_column :attachments, :quotes, :integer, :default => 0 add_index :attachments, :quotes end end