mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-03 14:24:23 +01:00
17 lines
375 B
Ruby
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
|