shop
This commit is contained in:
7
app/controllers/api/shops_controller.rb
Normal file
7
app/controllers/api/shops_controller.rb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
class Api::ShopsController < Api::ApiController
|
||||||
|
|
||||||
|
def index
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
36
db/migrate/20191030045340_add_shop_id.rb
Normal file
36
db/migrate/20191030045340_add_shop_id.rb
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
class AddShopId < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
add_column :accounts, :shop_id, :integer, :default => 1
|
||||||
|
add_column :bookings, :shop_id, :integer, :default => 1
|
||||||
|
add_column :cashier_terminals, :shop_id, :integer, :default => 1
|
||||||
|
add_column :commissioners, :shop_id, :integer, :default => 1
|
||||||
|
add_column :commissions, :shop_id, :integer, :default => 1
|
||||||
|
add_column :customers, :shop_id, :integer, :default => 1
|
||||||
|
add_column :dining_facilities, :shop_id, :integer, :default => 1
|
||||||
|
add_column :dining_queues, :shop_id, :integer, :default => 1
|
||||||
|
add_column :employees, :shop_id, :integer, :default => 1
|
||||||
|
add_column :inventory_definitions, :shop_id, :integer, :default => 1
|
||||||
|
add_column :item_sets, :shop_id, :integer, :default => 1
|
||||||
|
add_column :lookups, :shop_id, :integer, :default => 1
|
||||||
|
add_column :membership_settings, :shop_id, :integer, :default => 1
|
||||||
|
add_column :menus, :shop_id, :integer, :default => 1
|
||||||
|
add_column :order_queue_stations, :shop_id, :integer, :default => 1
|
||||||
|
add_column :orders, :shop_id, :integer, :default => 1
|
||||||
|
add_column :payment_journals, :shop_id, :integer, :default => 1
|
||||||
|
add_column :payment_method_settings, :shop_id, :integer, :default => 1
|
||||||
|
add_column :print_settings, :shop_id, :integer, :default => 1
|
||||||
|
add_column :sales, :shop_id, :integer, :default => 1
|
||||||
|
add_column :products, :shop_id, :integer, :default => 1
|
||||||
|
add_column :promotions, :shop_id, :integer, :default => 1
|
||||||
|
add_column :seed_generators, :shop_id, :integer, :default => 1
|
||||||
|
add_column :shift_sales, :shop_id, :integer, :default => 1
|
||||||
|
add_column :stock_checks, :shop_id, :integer, :default => 1
|
||||||
|
add_column :stock_journals, :shop_id, :integer, :default => 1
|
||||||
|
add_column :surveys, :shop_id, :integer, :default => 1
|
||||||
|
add_column :surveys, :booking_id, :string, :default => 1
|
||||||
|
add_column :tax_profiles, :shop_id, :integer, :default => 1
|
||||||
|
add_column :zones, :shop_id, :integer, :default => 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Reference in New Issue
Block a user