Add possibility to add an attachment to an invoice #345
This commit is contained in:
parent
8d5467ab7c
commit
749791bb7a
14 changed files with 75 additions and 1 deletions
6
db/migrate/20160218151041_add_attachment_to_invoice.rb
Normal file
6
db/migrate/20160218151041_add_attachment_to_invoice.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddAttachmentToInvoice < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :invoices, :attachment_mime, :string
|
||||
add_column :invoices, :attachment_data, :binary, :limit => 8.megabyte
|
||||
end
|
||||
end
|
||||
|
|
@ -169,6 +169,8 @@ ActiveRecord::Schema.define(version: 20160226000000) do
|
|||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "created_by_user_id"
|
||||
t.string "attachment_mime"
|
||||
t.binary "attachment_data"
|
||||
end
|
||||
|
||||
add_index "invoices", ["supplier_id"], name: "index_invoices_on_supplier_id", using: :btree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue