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/20200920165146_create_stock_movements.rb
2021-08-23 10:26:02 +02:00

16 lines
455 B
Ruby

class CreateStockMovements < ActiveRecord::Migration[6.0]
def change
create_table :stock_movements do |t|
t.string :movement_type, :default => "deb"
t.text :description
t.integer :admin_id
t.date :date
t.decimal :cc_tot_amount_ht, :precision => 14, :scale => 2
t.decimal :ac_tot_amount_ht, :precision => 14, :scale => 2
t.boolean :stock_done, :default => false
t.timestamps
end
end
end