kaps_app/db/migrate/20181021220708_create_p_ship_bill_lines.rb
Nicolas Bally d60301e8a7 initial
2019-01-21 01:15:10 +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