add out of stock

This commit is contained in:
NyanLinHtut
2019-12-13 10:07:20 +06:30
parent 7a9e270627
commit c6c605bb01
20 changed files with 1041 additions and 44 deletions

View File

@@ -0,0 +1,5 @@
class AddIsOutOfStockToMenuItemInstaces < ActiveRecord::Migration[5.1]
def change
add_column :menu_item_instances, :is_out_of_stock, :boolean
end
end

View File

@@ -0,0 +1,10 @@
class CreateOutOfStocks < ActiveRecord::Migration[5.1]
def change
create_table :out_of_stocks do |t|
t.datetime :date
t.string :item_instance_code
t.timestamps
end
end
end