1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20220805083431_create_product_stock_movements.rb

17 lines
375 B
Ruby
Raw Normal View History

2022-08-05 15:25:51 +02:00
# 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