sadem_app/migrations/00720_create_p_payment_documents.rb
Nicolas Bally 000500e534 init
2020-02-25 02:33:11 +01: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