From 117cd39d350c56951a90bb39d767a7ea0984045e Mon Sep 17 00:00:00 2001 From: Thein Lin Kyaw Date: Thu, 23 Jan 2020 16:27:12 +0630 Subject: [PATCH] update rake shop:create --- lib/tasks/shop_create.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/shop_create.rake b/lib/tasks/shop_create.rake index 5f51045f..11532ecb 100644 --- a/lib/tasks/shop_create.rake +++ b/lib/tasks/shop_create.rake @@ -3,7 +3,7 @@ namespace :shop do task :create, [:name, :shop_code, :subdomain, :client_name, :client_code, :address, :phone_no] => :environment do |t, args| ActiveRecord::Base.connection.execute("INSERT INTO shops (logo, name, shop_code, subdomain, client_name, client_code, address, township, city, state, country, phone_no, reservation_no, license, activated_at, license_data, base_currency, cloud_url, cloud_token, owner_token, id_prefix, is_rounding_adj, quick_sale_summary, calc_tax_order, show_account_info, note, created_at, updated_at) - VALUES (NULL, '#{args.name}', '#{args.shop_code}', '#{args.subdomain}', '#{args.client_name}', '#{args.client_code}', '#{args.address}', '', '', '', '', '#{args.phone_no}', '111', '', CURRENT_TIMESTAMP(), 'test', '111', NULL, NULL, NULL, '111', 0, 0, 0, 1, CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP())") + VALUES (NULL, '#{args.name}', '#{args.shop_code}', '#{args.subdomain}', '#{args.client_name}', '#{args.client_code}', '#{args.address}', '', '', '', '', '#{args.phone_no}', '111', '', CURRENT_TIMESTAMP(), 'test', '111', NULL, NULL, NULL, '111', 0, 0, 0, 1, '',CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP())") logger.info " Shop created for #{args.name}-#{args.shop_code}" gateway_communication_type =Lookup.create([{lookup_type:'gateway_communication_type',name: 'API',value: 'api',shop_code: args.shop_code},