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

17 lines
448 B
Ruby

class CreatePShipBillLines < ActiveRecord::Migration
def change
create_table :p_ship_bill_lines do |t|
t.references :p_ship_bill
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