kaps_app/db/migrate/20181111232302_create_p_sheet_line_lines.rb
Nicolas Bally d60301e8a7 initial
2019-01-21 01:15:10 +01:00

19 lines
623 B
Ruby

class CreatePSheetLineLines < ActiveRecord::Migration
def change
create_table :p_sheet_line_lines do |t|
t.references :p_sheet_line, index: true, foreign_key: true
t.references :p_product_stock, index: true, foreign_key: true
t.references :p_size, index: true, foreign_key: true
t.references :p_color, index: true, foreign_key: true
t.integer :ok_p_size_id
t.integer :ok_p_color_id
t.string :ok_code
t.integer :qte
t.decimal :price_u_ht, precision: 10, scale: 2
t.decimal :price_ht, precision: 10, scale: 2
t.timestamps null: false
end
end
end