15 lines
401 B
Ruby
15 lines
401 B
Ruby
class CreateStockCheckItems < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :stock_check_items do |t|
|
|
t.integer :stock_check_id, :null => false
|
|
t.string :item_code, :null => false
|
|
t.integer :stock_count, :default => 0
|
|
t.integer :stock_journal_id
|
|
t.integer :stock_balance
|
|
t.integer :different
|
|
t.string :remark
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|