lockaz_app/migrations/00720_create_p_payment_documents.rb
Nicolas Bally f20fe482c6 initial
2020-04-06 10:38:07 +02:00

13 lines
364 B
Ruby

class CreatePPaymentDocuments < ActiveRecord::Migration[6.0]
def change
create_table :p_payment_documents do |t|
t.references :p_payment, index: true
t.references :p_document, index: true
t.decimal :amount, :precision => 14, :scale => 2
t.boolean :paid, :default => false
t.timestamps
end
end
end