add out of stock
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddIsOutOfStockToMenuItemInstaces < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :menu_item_instances, :is_out_of_stock, :boolean
|
||||
end
|
||||
end
|
||||
10
db/migrate/20191204091822_create_out_of_stocks.rb
Normal file
10
db/migrate/20191204091822_create_out_of_stocks.rb
Normal 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
|
||||
Reference in New Issue
Block a user