1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/db/migrate/20220805083431_create_product_stock_movements.rb
2022-08-08 18:04:14 +02:00

17 lines
375 B
Ruby

# frozen_string_literal: true
class CreateProductStockMovements < ActiveRecord::Migration[5.2]
def change
create_table :product_stock_movements do |t|
t.belongs_to :product, foreign_key: true
t.integer :quantity
t.string :reason
t.string :stock_type
t.integer :remaining_stock
t.datetime :date
t.timestamps
end
end
end