pollen_app/migrations/00720_create_p_payment_documents.rb
Nicolas Bally 120e9803eb initial
2020-04-28 14:51:42 +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