basic_app/migrations/00900_create_p_tank_stocks.rb
Nicolas Bally fd027c16c1 initial
2020-04-21 21:53:16 +02:00

18 lines
620 B
Ruby

class CreatePTankStocks < ActiveRecord::Migration[6.0]
def change
create_table :p_tank_stocks do |t|
t.datetime :ok_at
t.boolean :enabled, :default => false
t.references :p_brut_product, index: true
t.decimal :volume, :precision => 14, :scale => 2
t.decimal :price, :precision => 14, :scale => 2
t.references :p_tank, index: true
t.string :stock_type
t.decimal :volume_abs, :precision => 14, :scale => 2
t.decimal :volume_restant, :precision => 14, :scale => 2
t.timestamps
end
end
end