qi6_app/db/migrate/20181021220708_create_p_ship_bill_lines.rb
2019-05-17 12:30:45 +02:00

17 lines
485 B
Ruby

class CreatePShipBillLines < ActiveRecord::Migration[6.0]
def change
create_table :p_ship_bill_lines do |t|
t.references :p_ship_bill, index: true, foreign_key: true
t.string :name
t.text :description
t.decimal :qte, precision: 14, scale: 4
t.decimal :price, precision: 14, scale: 4
t.decimal :a_ok_total, precision: 14, scale: 4
t.boolean :paid, :default => false
t.date :paid_at
t.timestamps null: false
end
end
end