coton_app/db/migrate/20180822220428_create_p_payment_documents.rb
2018-12-15 14:06:53 +01:00

13 lines
315 B
Ruby

class CreatePPaymentDocuments < ActiveRecord::Migration
def change
create_table :p_payment_documents do |t|
t.integer :p_payment_id
t.integer :p_document_id
t.decimal :amount, precision: 14, scale: 4
t.boolean :paid, :default => false
t.timestamps null: false
end
end
end