Files
sx-fc/db/migrate/20191119043609_add_shop_code.rb
Myat Zin Wai Maw d1ab2c194d shop code
2019-11-22 18:24:02 +06:30

37 lines
2.2 KiB
Ruby

class AddShopCode < ActiveRecord::Migration[5.1]
def change
add_column :accounts, :shop_code, :string, :default => '262'
add_column :bookings, :shop_code, :string, :default => '262'
add_column :cashier_terminals, :shop_code, :string, :default => '262'
add_column :commissioners, :shop_code, :string, :default => '262'
add_column :commissions, :shop_code, :string, :default => '262'
add_column :customers, :shop_code, :string, :default => '262'
add_column :dining_facilities, :shop_code, :string, :default => '262'
add_column :dining_queues, :shop_code, :string, :default => '262'
add_column :employees, :shop_code, :string, :default => '262'
add_column :inventory_definitions, :shop_code, :string, :default => '262'
add_column :item_sets, :shop_code, :string, :default => '262'
add_column :lookups, :shop_code, :string, :default => '262'
add_column :membership_settings, :shop_code, :string, :default => '262'
add_column :menus, :shop_code, :string, :default => '262'
add_column :order_queue_stations, :shop_code, :string, :default => '262'
add_column :orders, :shop_code, :string, :default => '262'
add_column :payment_journals, :shop_code, :string, :default => '262'
add_column :payment_method_settings, :shop_code, :string, :default => '262'
add_column :print_settings, :shop_code, :string, :default => '262'
add_column :sales, :shop_code, :string, :default => '262'
add_column :products, :shop_code, :string, :default => '262'
add_column :promotions, :shop_code, :string, :default => '262'
add_column :seed_generators, :shop_code, :string, :default => '262'
add_column :shift_sales, :shop_code, :string, :default => '262'
add_column :stock_checks, :shop_code, :string, :default => '262'
add_column :stock_journals, :shop_code, :string, :default => '262'
add_column :surveys, :shop_code, :string, :default => '262'
add_column :tax_profiles, :shop_code, :string, :default => '262'
add_column :zones, :shop_code, :string, :default => '262'
add_column :stock_check_items, :shop_code, :string, :default => '262'
add_column :order_reservations, :shop_code, :string, :default => '262'
add_column :assigned_order_items, :shop_code, :string, :default => '262'
end
end