class CreatePSheetLines < ActiveRecord::Migration
  def change
    create_table :p_sheet_lines do |t|
      t.references :p_customer_sheet
      t.references :p_product
      t.references :p_tank
      t.decimal :qte
      t.decimal :price
      t.datetime :ok_at
      t.decimal :ok_qte
      t.decimal :ok_price
      t.decimal :ok_price_abs
      t.boolean :ok
      t.boolean :lock, :delfault => false
      t.boolean :externe, :default => false
      t.integer :externe_stock_id

      t.timestamps null: false
    end
  end
end
