foodsoft/db/migrate/20160218151041_add_attachme...

7 lines
204 B
Ruby
Raw Normal View History

class AddAttachmentToInvoice < ActiveRecord::Migration
def change
add_column :invoices, :attachment_mime, :string
add_column :invoices, :attachment_data, :binary, :limit => 8.megabyte
end
end