This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/00900_create_p_tank_stocks.rb
2021-08-23 10:26:02 +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