solidus_drip 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 290275654534a1c5517175eda1d17cc7be8fc7ace035f306f78d41ebabcc130b
4
- data.tar.gz: c93f0603d7e88e4ddbcd076fc41c759c60abb78392531deedefab2f4ac847649
3
+ metadata.gz: 15bdf008366aa033cdc302df55961eabb50e32f39209878e4304c8b7698a0565
4
+ data.tar.gz: 02bfc06d6288a1170c0338b90e9921931cb57a46da009e48fc551464d6043be2
5
5
  SHA512:
6
- metadata.gz: 913a6ee519bed0452b89f2ee0e566593e2b97c3de0e22d58184bfadb10f722877e98b05cff71b921e10e9b6feeaefa2af9b4ad239c975c3d1a5222f5f6003245
7
- data.tar.gz: e718d1fca112dbb26fe783df56230eb2cb855638cc3bb5b7133902f4506a6134565349c13bd589cbe88dfb073d2b4d19a37a177f0d952aba57c7281cc60803f6
6
+ metadata.gz: b8e3cfc0f50d625fce7e0da365ea5740b30df3d8320723d562c5214811c47ce3589ab4d4cfa667f84764c264c89154a35258fdb8e8291cbfda5b3cd687813276
7
+ data.tar.gz: 91c722e598fff563a8ee4a39f21c1ec6ad8572d1a5b879ef64217f36ad711817ae277418fc799d77ccc421e16c6d117f5ddd19b15ce2683af8834fcd19f9f12c
data/README.md CHANGED
@@ -24,6 +24,15 @@ ENV['DRIP_API_KEY'] = 'YOUR_API_KEY'
24
24
  ENV['DRIP_ACCOUNT_ID'] = 'YOUR_ACCOUNT_ID'
25
25
  ```
26
26
 
27
+ ### Import Data
28
+
29
+ You can import all order data from your Solidus store to Drip via a rake task.
30
+ This should ideally only be run once.
31
+
32
+ ```shell
33
+ rails drip:import_orders
34
+ ```
35
+
27
36
  ## Testing
28
37
 
29
38
  First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs, and [Rubocop](https://github.com/bbatsov/rubocop) static code analysis. The dummy app can be regenerated by using `rake test_app`.
@@ -54,6 +54,7 @@ module SolidusDrip
54
54
  provider: 'solidus',
55
55
  email: order.email,
56
56
  action: action,
57
+ occurred_at: order.updated_at.iso8601,
57
58
  cart_id: order.id.to_s,
58
59
  cart_public_id: order.number,
59
60
  grand_total: order.total.to_f,
@@ -85,6 +86,7 @@ module SolidusDrip
85
86
  provider: 'solidus',
86
87
  email: order.email,
87
88
  action: action,
89
+ occurred_at: order.updated_at.iso8601,
88
90
  order_id: order.id.to_s,
89
91
  order_public_id: order.number,
90
92
  grand_total: order.total.to_f,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDrip
4
- VERSION = '0.0.1'
4
+ VERSION = '0.1.0'
5
5
  end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :drip do
4
+ desc 'Imports order data into Drip'
5
+ task import_orders: :environment do
6
+ puts 'Starting Drip Order Import...'
7
+
8
+ require 'drip'
9
+
10
+ drip_client = SolidusDrip::Base.new.client
11
+
12
+ # Completed Orders
13
+ order_activities = []
14
+ Spree::Order.complete.find_each do |order|
15
+ drip = SolidusDrip::ShopperActivity::Order.new(order)
16
+ action = drip_status(order)
17
+ order_activities << drip.send(:order_data, action) # order_data is a private method
18
+
19
+ # 1000 is the limit on orders that can be sent at a time. Once we have
20
+ # that amount of data we send it all to Drip
21
+ if order_activities.count == 1000
22
+ puts 'Sending 1000 orders to Drip...'
23
+ # Send to drip
24
+ drip_client.create_order_activity_events(order_activities)
25
+ # Reset
26
+ order_activities = []
27
+ end
28
+ end
29
+
30
+ # Send any extra data that wasn't part of the loop
31
+ if order_activities.count.positive?
32
+ puts "Sending remaining #{order_activities.count} orders to Drip..."
33
+ drip_client.create_order_activity_events(order_activities)
34
+ end
35
+
36
+ puts 'Drip Order Import Complete!'
37
+ end
38
+ end
39
+
40
+ ##
41
+ # Calculates the drip status to be sent for the given order
42
+ #
43
+ def drip_status(order)
44
+ if order.shipped?
45
+ 'fulfilled'
46
+ elsif order.paid?
47
+ 'paid'
48
+ else
49
+ 'updated'
50
+ end
51
+ end
@@ -12693,3 +12693,2863 @@ Order R572400034 transitioned from confirm to complete via complete
12693
12693
  Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R894325116"], ["state", "cart"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email5@example.com"], ["created_at", "2019-11-06 00:04:59.819414"], ["updated_at", "2019-11-06 00:04:59.819414"], ["currency", "USD"], ["guest_token", "W9z0Oldb8CTBdyPm5uHDsQ"], ["store_id", 1]]
12694
12694
   (0.1ms) RELEASE SAVEPOINT active_record_1
12695
12695
   (0.6ms) rollback transaction
12696
+ solidus_drip, default_url_options was blank and is being set to localhost
12697
+  (3.6ms) SELECT sqlite_version(*)
12698
+  (0.1ms) PRAGMA foreign_keys
12699
+  (0.0ms) PRAGMA defer_foreign_keys
12700
+  (0.0ms) PRAGMA defer_foreign_keys = ON
12701
+  (0.0ms) PRAGMA foreign_keys = OFF
12702
+  (1.8ms) DELETE FROM "ar_internal_metadata";
12703
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12704
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
12705
+  (1.3ms) DELETE FROM "active_storage_blobs";
12706
+  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12707
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'active_storage_blobs';
12708
+  (1.5ms) DELETE FROM "active_storage_attachments";
12709
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12710
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'active_storage_attachments';
12711
+  (2.1ms) DELETE FROM "action_mailbox_inbound_emails";
12712
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12713
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'action_mailbox_inbound_emails';
12714
+  (1.7ms) DELETE FROM "action_text_rich_texts";
12715
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12716
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'action_text_rich_texts';
12717
+  (2.0ms) DELETE FROM "friendly_id_slugs";
12718
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12719
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'friendly_id_slugs';
12720
+  (2.4ms) DELETE FROM "spree_addresses";
12721
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12722
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_addresses';
12723
+  (1.9ms) DELETE FROM "spree_adjustment_reasons";
12724
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12725
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_adjustment_reasons';
12726
+  (3.3ms) DELETE FROM "spree_adjustments";
12727
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12728
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_adjustments';
12729
+  (2.4ms) DELETE FROM "spree_assets";
12730
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12731
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_assets';
12732
+  (2.2ms) DELETE FROM "spree_calculators";
12733
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12734
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_calculators';
12735
+  (2.5ms) DELETE FROM "spree_cartons";
12736
+  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12737
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_cartons';
12738
+  (1.4ms) DELETE FROM "spree_countries";
12739
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12740
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'spree_countries';
12741
+  (0.9ms) DELETE FROM "spree_credit_cards";
12742
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12743
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_credit_cards';
12744
+  (1.0ms) DELETE FROM "spree_customer_returns";
12745
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12746
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_customer_returns';
12747
+  (1.2ms) DELETE FROM "spree_line_item_actions";
12748
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12749
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_line_item_actions';
12750
+  (2.7ms) DELETE FROM "spree_log_entries";
12751
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12752
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_log_entries';
12753
+  (0.9ms) DELETE FROM "spree_option_type_prototypes";
12754
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12755
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_type_prototypes';
12756
+  (1.0ms) DELETE FROM "spree_option_types";
12757
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12758
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_types';
12759
+  (1.8ms) DELETE FROM "spree_option_values";
12760
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12761
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_values';
12762
+  (2.3ms) DELETE FROM "spree_option_values_variants";
12763
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12764
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'spree_option_values_variants';
12765
+  (1.8ms) DELETE FROM "spree_order_mutexes";
12766
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12767
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'spree_order_mutexes';
12768
+  (4.5ms) DELETE FROM "spree_orders";
12769
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12770
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_orders';
12771
+  (2.1ms) DELETE FROM "spree_orders_promotions";
12772
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12773
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_orders_promotions';
12774
+  (1.6ms) DELETE FROM "spree_payment_capture_events";
12775
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12776
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_payment_capture_events';
12777
+  (2.0ms) DELETE FROM "spree_payments";
12778
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12779
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_payments';
12780
+  (1.1ms) DELETE FROM "spree_preferences";
12781
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12782
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_preferences';
12783
+  (2.0ms) DELETE FROM "spree_product_option_types";
12784
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12785
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_product_option_types';
12786
+  (2.4ms) DELETE FROM "spree_product_promotion_rules";
12787
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12788
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_product_promotion_rules';
12789
+  (2.4ms) DELETE FROM "spree_product_properties";
12790
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12791
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_product_properties';
12792
+  (3.1ms) DELETE FROM "spree_products";
12793
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12794
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_products';
12795
+  (2.2ms) DELETE FROM "spree_products_taxons";
12796
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12797
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_products_taxons';
12798
+  (1.7ms) DELETE FROM "spree_promotion_action_line_items";
12799
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12800
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_action_line_items';
12801
+  (2.7ms) DELETE FROM "spree_promotion_actions";
12802
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12803
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_actions';
12804
+  (1.1ms) DELETE FROM "spree_promotion_categories";
12805
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12806
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_categories';
12807
+  (1.6ms) DELETE FROM "spree_promotion_rule_taxons";
12808
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12809
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rule_taxons';
12810
+  (1.9ms) DELETE FROM "spree_promotion_rules";
12811
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12812
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rules';
12813
+  (1.9ms) DELETE FROM "spree_promotion_rules_users";
12814
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12815
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rules_users';
12816
+  (1.1ms) DELETE FROM "spree_properties";
12817
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12818
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_properties';
12819
+  (1.4ms) DELETE FROM "spree_property_prototypes";
12820
+  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12821
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_property_prototypes';
12822
+  (2.0ms) DELETE FROM "spree_prototype_taxons";
12823
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12824
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_prototype_taxons';
12825
+  (1.8ms) DELETE FROM "spree_prototypes";
12826
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12827
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_prototypes';
12828
+  (1.1ms) DELETE FROM "spree_refund_reasons";
12829
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12830
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_refund_reasons';
12831
+  (1.2ms) DELETE FROM "spree_refunds";
12832
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12833
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_refunds';
12834
+  (1.4ms) DELETE FROM "spree_reimbursement_credits";
12835
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12836
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_reimbursement_credits';
12837
+  (1.4ms) DELETE FROM "spree_reimbursement_types";
12838
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12839
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_reimbursement_types';
12840
+  (2.0ms) DELETE FROM "spree_reimbursements";
12841
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12842
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'spree_reimbursements';
12843
+  (3.8ms) DELETE FROM "spree_return_authorizations";
12844
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12845
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_return_authorizations';
12846
+  (1.2ms) DELETE FROM "spree_return_items";
12847
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12848
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_return_items';
12849
+  (1.1ms) DELETE FROM "spree_return_reasons";
12850
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12851
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_return_reasons';
12852
+  (1.6ms) DELETE FROM "spree_roles";
12853
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12854
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_roles';
12855
+  (1.6ms) DELETE FROM "spree_roles_users";
12856
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12857
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_roles_users';
12858
+  (1.9ms) DELETE FROM "spree_shipments";
12859
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12860
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipments';
12861
+  (1.0ms) DELETE FROM "spree_shipping_categories";
12862
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12863
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_categories';
12864
+  (2.3ms) DELETE FROM "spree_shipping_method_categories";
12865
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12866
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_method_categories';
12867
+  (1.4ms) DELETE FROM "spree_shipping_method_stock_locations";
12868
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12869
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_method_stock_locations';
12870
+  (1.1ms) DELETE FROM "spree_shipping_method_zones";
12871
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12872
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_method_zones';
12873
+  (1.6ms) DELETE FROM "spree_shipping_rate_taxes";
12874
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12875
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_rate_taxes';
12876
+  (1.8ms) DELETE FROM "spree_shipping_rates";
12877
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12878
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_rates';
12879
+  (0.9ms) DELETE FROM "spree_state_changes";
12880
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12881
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_state_changes';
12882
+  (1.3ms) DELETE FROM "spree_states";
12883
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12884
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_states';
12885
+  (1.4ms) DELETE FROM "spree_stock_items";
12886
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12887
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_stock_items';
12888
+  (2.0ms) DELETE FROM "spree_stock_locations";
12889
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12890
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stock_locations';
12891
+  (1.3ms) DELETE FROM "spree_stock_movements";
12892
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12893
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stock_movements';
12894
+  (0.7ms) DELETE FROM "spree_store_credit_categories";
12895
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12896
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_categories';
12897
+  (1.2ms) DELETE FROM "spree_store_credit_types";
12898
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12899
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_types';
12900
+  (1.1ms) DELETE FROM "spree_store_payment_methods";
12901
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12902
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_payment_methods';
12903
+  (1.3ms) DELETE FROM "spree_stores";
12904
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12905
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stores';
12906
+  (1.0ms) DELETE FROM "spree_tax_categories";
12907
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12908
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_tax_categories';
12909
+  (1.2ms) DELETE FROM "spree_taxonomies";
12910
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12911
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_taxonomies';
12912
+  (2.4ms) DELETE FROM "spree_taxons";
12913
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12914
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_taxons';
12915
+  (1.6ms) DELETE FROM "spree_unit_cancels";
12916
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12917
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_unit_cancels';
12918
+  (0.9ms) DELETE FROM "spree_user_addresses";
12919
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12920
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_user_addresses';
12921
+  (1.1ms) DELETE FROM "spree_user_stock_locations";
12922
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12923
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_user_stock_locations';
12924
+  (0.8ms) DELETE FROM "spree_variant_property_rule_conditions";
12925
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12926
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variant_property_rule_conditions';
12927
+  (1.1ms) DELETE FROM "spree_variant_property_rule_values";
12928
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12929
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variant_property_rule_values';
12930
+  (1.0ms) DELETE FROM "spree_variant_property_rules";
12931
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12932
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variant_property_rules';
12933
+  (1.8ms) DELETE FROM "spree_variants";
12934
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12935
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variants';
12936
+  (1.7ms) DELETE FROM "spree_zone_members";
12937
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12938
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_zone_members';
12939
+  (2.4ms) DELETE FROM "spree_wallet_payment_sources";
12940
+  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12941
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_wallet_payment_sources';
12942
+  (2.1ms) DELETE FROM "spree_prices";
12943
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12944
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_prices';
12945
+  (1.9ms) DELETE FROM "spree_line_items";
12946
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12947
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_line_items';
12948
+  (1.4ms) DELETE FROM "spree_payment_methods";
12949
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12950
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_payment_methods';
12951
+  (1.6ms) DELETE FROM "spree_promotion_code_batches";
12952
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12953
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_code_batches';
12954
+  (1.7ms) DELETE FROM "spree_promotion_codes";
12955
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12956
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_codes';
12957
+  (2.2ms) DELETE FROM "spree_shipping_methods";
12958
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12959
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_methods';
12960
+  (2.5ms) DELETE FROM "spree_store_credits";
12961
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12962
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credits';
12963
+  (2.9ms) DELETE FROM "spree_inventory_units";
12964
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12965
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_inventory_units';
12966
+  (2.1ms) DELETE FROM "spree_tax_rate_tax_categories";
12967
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12968
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_tax_rate_tax_categories';
12969
+  (2.1ms) DELETE FROM "spree_tax_rates";
12970
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12971
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_tax_rates';
12972
+  (3.0ms) DELETE FROM "spree_zones";
12973
+  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12974
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_zones';
12975
+  (2.0ms) DELETE FROM "spree_promotion_rules_stores";
12976
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12977
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rules_stores';
12978
+  (2.3ms) DELETE FROM "spree_store_shipping_methods";
12979
+  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12980
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_shipping_methods';
12981
+  (1.4ms) DELETE FROM "spree_store_credit_reasons";
12982
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12983
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_reasons';
12984
+  (3.1ms) DELETE FROM "spree_promotions";
12985
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12986
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotions';
12987
+  (1.5ms) DELETE FROM "spree_store_credit_events";
12988
+  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12989
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_events';
12990
+  (2.6ms) DELETE FROM "spree_users";
12991
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
12992
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_users';
12993
+  (0.0ms) PRAGMA defer_foreign_keys = 0
12994
+  (0.0ms) PRAGMA foreign_keys = 1
12995
+  (0.1ms) begin transaction
12996
+  (0.1ms) SAVEPOINT active_record_1
12997
+ Spree::User Exists? (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email1@example.com"], ["LIMIT", 1]]
12998
+ Spree::User Create (0.9ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "6fd1977bc52fb7f1394c12c5116d8e0e9c10143319a6f23df6689fba6ff71049792149ca91100ef9c0091c92da11a88340013cd8da5f8d88da7b92de1ee8ff7c"], ["password_salt", "3kkESop2L-T2Rqh2Jbnb"], ["email", "email1@example.com"], ["login", "email1@example.com"], ["created_at", "2019-11-22 20:20:44.249295"], ["updated_at", "2019-11-22 20:20:44.249295"]]
12999
+ Spree::Role Load (0.2ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
13000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13001
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13002
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
13003
+  (0.1ms) SAVEPOINT active_record_1
13004
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:45.750877"], ["created_at", "2019-11-22 20:20:45.750877"]]
13005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13006
+  (0.1ms) SAVEPOINT active_record_1
13007
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:45.756504"], ["created_at", "2019-11-22 20:20:45.756504"]]
13008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13009
+  (0.1ms) SAVEPOINT active_record_1
13010
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10001"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:45.758723"], ["updated_at", "2019-11-22 20:20:45.758723"]]
13011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13012
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13013
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13014
+  (0.1ms) SAVEPOINT active_record_1
13015
+ Spree::Address Create (0.5ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10002"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:45.763319"], ["updated_at", "2019-11-22 20:20:45.763319"]]
13016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13017
+  (0.3ms) SAVEPOINT active_record_1
13018
+ Spree::Store Exists? (0.3ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_1"], ["LIMIT", 1]]
13019
+  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
13020
+ Spree::Store Create (0.4ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 1"], ["url", "www.example1.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_1"], ["default", 1], ["created_at", "2019-11-22 20:20:45.801283"], ["updated_at", "2019-11-22 20:20:45.801283"]]
13021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13022
+ Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
13023
+ Spree::State Load (0.7ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
13024
+  (0.7ms) SAVEPOINT active_record_1
13025
+ Spree::StockLocation Load (1.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
13026
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:45.923204"], ["updated_at", "2019-11-22 20:20:45.923204"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
13027
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
13028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13029
+ Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13030
+  (0.1ms) SAVEPOINT active_record_1
13031
+ Spree::ShippingCategory Create (0.4ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #1"], ["created_at", "2019-11-22 20:20:46.502365"], ["updated_at", "2019-11-22 20:20:46.502365"]]
13032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13033
+ Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13034
+  (0.3ms) SAVEPOINT active_record_1
13035
+ Spree::TaxCategory Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 707319"], ["LIMIT", 1]]
13036
+ Spree::TaxCategory Create (1.1ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 707319"], ["created_at", "2019-11-22 20:20:46.573749"], ["updated_at", "2019-11-22 20:20:46.573749"], ["tax_code", "TaxCode - 887189"]]
13037
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13038
+  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations"
13039
+  (0.1ms) SAVEPOINT active_record_1
13040
+ Spree::Product Exists? (0.4ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-1-857"], ["LIMIT", 1]]
13041
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-1-857' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13042
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13043
+ Spree::Variant Exists? (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-1"], ["LIMIT", 1]]
13044
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13045
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-1"], ["LIMIT", 1]]
13046
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-1-857"], ["LIMIT", 1]]
13047
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #1 - 857"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:46.370047"], ["slug", "product-1-857"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:46.920573"], ["updated_at", "2019-11-22 20:20:46.920573"]]
13048
+ Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13049
+ Spree::Variant Create (0.4ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-1"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:46.922921"], ["created_at", "2019-11-22 20:20:46.922921"]]
13050
+ Spree::Price Create (0.3ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:46.928983"], ["updated_at", "2019-11-22 20:20:46.928983"]]
13051
+ Spree::StockLocation Load (0.8ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13052
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13053
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:46.957245"], ["updated_at", "2019-11-22 20:20:46.957245"], ["backorderable", 1]]
13054
+ Spree::Variant Update (0.6ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:46.959485"], ["id", 1]]
13055
+  (0.6ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13056
+ Spree::Variant Update (0.3ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
13057
+  (0.2ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13058
+  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13059
+ FriendlyId::Slug Load (0.3ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13060
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-1-857"]]
13061
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13062
+ FriendlyId::Slug Create (0.2ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-1-857"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:47.037936"], ["updated_at", "2019-11-22 20:20:47.037936"]]
13063
+ Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13064
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:46.930936"], ["id", 1]]
13065
+ Spree::Product Update (0.3ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:47.041747"], ["id", 1]]
13066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13067
+  (0.2ms) SAVEPOINT active_record_1
13068
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R820632480"], ["LIMIT", 1]]
13069
+ Spree::Order Exists? (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R820632480"], ["LIMIT", 1]]
13070
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "UqCV0fIKjoc64BeIh3bt7Q"], ["LIMIT", 1]]
13071
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "payment_state", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R820632480"], ["state", "confirm"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["payment_state", "checkout"], ["email", "email1@example.com"], ["created_at", "2019-11-22 20:20:47.051874"], ["updated_at", "2019-11-22 20:20:47.051874"], ["currency", "USD"], ["guest_token", "UqCV0fIKjoc64BeIh3bt7Q"], ["store_id", 1]]
13072
+ Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13073
+ Spree::LineItem Create (0.2ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:20:47.057982"], ["updated_at", "2019-11-22 20:20:47.057982"], ["cost_price", 17.0], ["tax_category_id", 1]]
13074
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.060007"], ["id", 1]]
13075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13076
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13077
+  (0.2ms) SAVEPOINT active_record_1
13078
+ Spree::Shipment Exists? (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H48363877773"], ["LIMIT", 1]]
13079
+ Spree::Shipment Create (0.7ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H48363877773"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:20:47.119894"], ["updated_at", "2019-11-22 20:20:47.119894"], ["stock_location_id", 1]]
13080
+ Spree::Order Update (0.4ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.123008"], ["id", 1]]
13081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13082
+ Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13083
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries"
13084
+  (0.2ms) SAVEPOINT active_record_1
13085
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13086
+ Spree::Zone Create (0.2ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:20:47.224527"], ["updated_at", "2019-11-22 20:20:47.224527"]]
13087
+ Spree::ZoneMember Create (0.5ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:47.227025"], ["updated_at", "2019-11-22 20:20:47.227025"]]
13088
+ Spree::Zone Update All (0.3ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
13089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13090
+  (0.2ms) SAVEPOINT active_record_1
13091
+ Spree::Zone Exists? (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13092
+ Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
13093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13094
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13095
+  (0.1ms) SAVEPOINT active_record_1
13096
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13097
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:20:47.326445"], ["updated_at", "2019-11-22 20:20:47.326445"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
13098
+ Spree::Calculator::Shipping::FlatRate Create (0.3ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:20:47.327927"], ["updated_at", "2019-11-22 20:20:47.327927"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
13099
+ Spree::ShippingMethodCategory Create (0.2ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:47.330278"], ["updated_at", "2019-11-22 20:20:47.330278"]]
13100
+ Spree::ShippingMethodZone Create (0.2ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:47.331697"], ["updated_at", "2019-11-22 20:20:47.331697"]]
13101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13102
+  (0.1ms) SAVEPOINT active_record_1
13103
+ Spree::ShippingRate Create (0.2ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:20:47.351247"], ["updated_at", "2019-11-22 20:20:47.351247"]]
13104
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:47.353105"], ["id", 1]]
13105
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.354835"], ["id", 1]]
13106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13107
+  (0.1ms) SAVEPOINT active_record_1
13108
+ Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13109
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13110
+ Spree::InventoryUnit Create (0.3ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:20:47.382657"], ["updated_at", "2019-11-22 20:20:47.382657"], ["line_item_id", 1]]
13111
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:47.384691"], ["id", 1]]
13112
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.385932"], ["id", 1]]
13113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13114
+ Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
13115
+  (0.1ms) SAVEPOINT active_record_1
13116
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
13117
+ Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13118
+ Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
13119
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
13120
+ Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
13121
+ Spree::TaxRate Load (0.5ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13122
+ Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13123
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13124
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13125
+  (0.2ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13126
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:20:47.486816"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
13127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13128
+  (0.1ms) SAVEPOINT active_record_1
13129
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R820632480"], ["id", 1], ["LIMIT", 1]]
13130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13131
+  (0.1ms) SAVEPOINT active_record_1
13132
+ Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13133
+ Spree::PaymentMethod::BogusCreditCard Create (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:47.560657"], ["updated_at", "2019-11-22 20:20:47.560657"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
13134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13135
+  (0.1ms) SAVEPOINT active_record_1
13136
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13137
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:47.597445"], ["updated_at", "2019-11-22 20:20:47.597445"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
13138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13139
+  (0.1ms) SAVEPOINT active_record_1
13140
+ Spree::CreditCard Create (0.3ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:20:47.603627"], ["updated_at", "2019-11-22 20:20:47.603627"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
13141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13142
+  (0.1ms) SAVEPOINT active_record_1
13143
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "GZVVVQJH"], ["LIMIT", 1]]
13144
+ Spree::Payment Create (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2019-11-22 20:20:47.622333"], ["updated_at", "2019-11-22 20:20:47.622333"], ["number", "GZVVVQJH"]]
13145
+ Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13146
+ Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-345251"], ["LIMIT", 1]]
13147
+ Spree::CreditCard Update (0.3ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-345251"], ["updated_at", "2019-11-22 20:20:47.636816"], ["id", 1]]
13148
+ Spree::Order Update (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.626564"], ["id", 1]]
13149
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13150
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13151
+  (0.2ms) SAVEPOINT active_record_1
13152
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13153
+ Spree::TaxRate Load (0.5ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13155
+  (7.3ms) rollback transaction
13156
+  (0.1ms) begin transaction
13157
+  (0.1ms) SAVEPOINT active_record_1
13158
+ Spree::User Exists? (10.8ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email2@example.com"], ["LIMIT", 1]]
13159
+ Spree::User Create (1.1ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "6d7f044adcae0132da114caed5e43e02d91927eb28874cb627d368b7a6c78006929b95d8efeffe1ca6b79c3c7075e9f353041601ebda82d6629c07962b6b43b5"], ["password_salt", "Wqd7wmJTpJTMSYamyyBj"], ["email", "email2@example.com"], ["login", "email2@example.com"], ["created_at", "2019-11-22 20:20:47.690348"], ["updated_at", "2019-11-22 20:20:47.690348"]]
13160
+ Spree::Role Load (0.2ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
13161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13162
+ Spree::State Load (2.1ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13163
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
13164
+  (0.2ms) SAVEPOINT active_record_1
13165
+ Spree::Country Create (0.4ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:47.708347"], ["created_at", "2019-11-22 20:20:47.708347"]]
13166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13167
+  (0.2ms) SAVEPOINT active_record_1
13168
+ Spree::State Create (0.3ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:47.713182"], ["created_at", "2019-11-22 20:20:47.713182"]]
13169
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13170
+  (0.1ms) SAVEPOINT active_record_1
13171
+ Spree::Address Create (0.5ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10003"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:47.717452"], ["updated_at", "2019-11-22 20:20:47.717452"]]
13172
+  (0.3ms) RELEASE SAVEPOINT active_record_1
13173
+ Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13174
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13175
+  (0.2ms) SAVEPOINT active_record_1
13176
+ Spree::Address Create (0.4ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10004"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:47.727717"], ["updated_at", "2019-11-22 20:20:47.727717"]]
13177
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13178
+  (0.2ms) SAVEPOINT active_record_1
13179
+ Spree::Store Exists? (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_2"], ["LIMIT", 1]]
13180
+  (0.3ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
13181
+ Spree::Store Create (0.5ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 2"], ["url", "www.example2.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_2"], ["default", 1], ["created_at", "2019-11-22 20:20:47.737248"], ["updated_at", "2019-11-22 20:20:47.737248"]]
13182
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13183
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
13184
+ Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
13185
+  (0.2ms) SAVEPOINT active_record_1
13186
+ Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
13187
+ Spree::StockLocation Create (0.5ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:47.749097"], ["updated_at", "2019-11-22 20:20:47.749097"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
13188
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
13189
+  (0.8ms) RELEASE SAVEPOINT active_record_1
13190
+ Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13191
+  (0.2ms) SAVEPOINT active_record_1
13192
+ Spree::ShippingCategory Create (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #2"], ["created_at", "2019-11-22 20:20:47.773586"], ["updated_at", "2019-11-22 20:20:47.773586"]]
13193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13194
+ Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13195
+  (0.1ms) SAVEPOINT active_record_1
13196
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 105384"], ["LIMIT", 1]]
13197
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 105384"], ["created_at", "2019-11-22 20:20:47.780904"], ["updated_at", "2019-11-22 20:20:47.780904"], ["tax_code", "TaxCode - 374932"]]
13198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13199
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
13200
+  (0.2ms) SAVEPOINT active_record_1
13201
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-2-3260"], ["LIMIT", 1]]
13202
+ Spree::Product Exists? (0.5ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-2-3260' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13203
+ Spree::TaxRate Exists? (0.4ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13204
+ Spree::Variant Exists? (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-2"], ["LIMIT", 1]]
13205
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13206
+ Spree::Variant Exists? (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-2"], ["LIMIT", 1]]
13207
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-2-3260"], ["LIMIT", 1]]
13208
+ Spree::Product Create (0.5ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #2 - 3260"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:47.770612"], ["slug", "product-2-3260"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:47.806859"], ["updated_at", "2019-11-22 20:20:47.806859"]]
13209
+ Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13210
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-2"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:47.810027"], ["created_at", "2019-11-22 20:20:47.810027"]]
13211
+ Spree::Price Create (0.3ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:47.813850"], ["updated_at", "2019-11-22 20:20:47.813850"]]
13212
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13213
+ Spree::StockItem Exists? (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13214
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:47.820907"], ["updated_at", "2019-11-22 20:20:47.820907"], ["backorderable", 1]]
13215
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:47.822580"], ["id", 1]]
13216
+  (0.2ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13217
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
13218
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13219
+  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13220
+ FriendlyId::Slug Load (0.2ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13221
+ FriendlyId::Slug Destroy (0.3ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-2-3260"]]
13222
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13223
+ FriendlyId::Slug Create (0.6ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-2-3260"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:47.840056"], ["updated_at", "2019-11-22 20:20:47.840056"]]
13224
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13225
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:47.815027"], ["id", 1]]
13226
+ Spree::Product Update (0.2ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:47.844302"], ["id", 1]]
13227
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13228
+  (0.1ms) SAVEPOINT active_record_1
13229
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R673752083"], ["LIMIT", 1]]
13230
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R673752083"], ["LIMIT", 1]]
13231
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "gMD1Q7_ICASUMp6DmpMQaQ"], ["LIMIT", 1]]
13232
+ Spree::Order Create (1.2ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "payment_state", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R673752083"], ["state", "confirm"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["payment_state", "checkout"], ["email", "email2@example.com"], ["created_at", "2019-11-22 20:20:47.850494"], ["updated_at", "2019-11-22 20:20:47.850494"], ["currency", "USD"], ["guest_token", "gMD1Q7_ICASUMp6DmpMQaQ"], ["store_id", 1]]
13233
+ Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13234
+ Spree::LineItem Create (0.4ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:20:47.884873"], ["updated_at", "2019-11-22 20:20:47.884873"], ["cost_price", 17.0], ["tax_category_id", 1]]
13235
+ Spree::Order Update (0.4ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.889365"], ["id", 1]]
13236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13237
+ Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13238
+  (0.3ms) SAVEPOINT active_record_1
13239
+ Spree::Shipment Exists? (0.5ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H80032861113"], ["LIMIT", 1]]
13240
+ Spree::Shipment Create (0.7ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H80032861113"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:20:47.907327"], ["updated_at", "2019-11-22 20:20:47.907327"], ["stock_location_id", 1]]
13241
+ Spree::Order Update (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.914018"], ["id", 1]]
13242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13243
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13244
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"
13245
+  (0.1ms) SAVEPOINT active_record_1
13246
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13247
+ Spree::Zone Create (0.1ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:20:47.921226"], ["updated_at", "2019-11-22 20:20:47.921226"]]
13248
+ Spree::ZoneMember Create (0.1ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:47.922228"], ["updated_at", "2019-11-22 20:20:47.922228"]]
13249
+ Spree::Zone Update All (0.2ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
13250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13251
+  (0.2ms) SAVEPOINT active_record_1
13252
+ Spree::Zone Exists? (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13253
+ Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
13254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13255
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13256
+  (0.1ms) SAVEPOINT active_record_1
13257
+ Spree::Zone Exists? (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13258
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:20:47.943526"], ["updated_at", "2019-11-22 20:20:47.943526"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
13259
+ Spree::Calculator::Shipping::FlatRate Create (0.5ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:20:47.944912"], ["updated_at", "2019-11-22 20:20:47.944912"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
13260
+ Spree::ShippingMethodCategory Create (0.2ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:47.947478"], ["updated_at", "2019-11-22 20:20:47.947478"]]
13261
+ Spree::ShippingMethodZone Create (0.2ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:47.948748"], ["updated_at", "2019-11-22 20:20:47.948748"]]
13262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13263
+  (0.1ms) SAVEPOINT active_record_1
13264
+ Spree::ShippingRate Create (0.4ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:20:47.953766"], ["updated_at", "2019-11-22 20:20:47.953766"]]
13265
+ Spree::Shipment Update (0.3ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:47.956498"], ["id", 1]]
13266
+ Spree::Order Update (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.958443"], ["id", 1]]
13267
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13268
+  (0.1ms) SAVEPOINT active_record_1
13269
+ Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13270
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13271
+ Spree::InventoryUnit Create (0.4ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:20:47.970053"], ["updated_at", "2019-11-22 20:20:47.970053"], ["line_item_id", 1]]
13272
+ Spree::Shipment Update (0.3ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:47.972164"], ["id", 1]]
13273
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:47.974440"], ["id", 1]]
13274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13275
+ Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
13276
+  (0.1ms) SAVEPOINT active_record_1
13277
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
13278
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13279
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
13280
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
13281
+ Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
13282
+ Spree::TaxRate Load (0.5ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13283
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13284
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13285
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13286
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13287
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:20:48.025243"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
13288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13289
+  (0.1ms) SAVEPOINT active_record_1
13290
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R673752083"], ["id", 1], ["LIMIT", 1]]
13291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13292
+  (0.1ms) SAVEPOINT active_record_1
13293
+ Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13294
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:48.033345"], ["updated_at", "2019-11-22 20:20:48.033345"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
13295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13296
+  (0.1ms) SAVEPOINT active_record_1
13297
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13298
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:48.039088"], ["updated_at", "2019-11-22 20:20:48.039088"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
13299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13300
+  (0.1ms) SAVEPOINT active_record_1
13301
+ Spree::CreditCard Create (0.2ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:20:48.046918"], ["updated_at", "2019-11-22 20:20:48.046918"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
13302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13303
+  (0.1ms) SAVEPOINT active_record_1
13304
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P5B9WSSP"], ["LIMIT", 1]]
13305
+ Spree::Payment Create (0.5ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2019-11-22 20:20:48.052118"], ["updated_at", "2019-11-22 20:20:48.052118"], ["number", "P5B9WSSP"]]
13306
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13307
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-115313"], ["LIMIT", 1]]
13308
+ Spree::CreditCard Update (0.2ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-115313"], ["updated_at", "2019-11-22 20:20:48.057832"], ["id", 1]]
13309
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.054996"], ["id", 1]]
13310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13311
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13312
+ Spree::InventoryUnit Exists? (0.2ms) SELECT 1 AS one FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? LIMIT ? [["line_item_id", 1], ["LIMIT", 1]]
13313
+  (0.1ms) SELECT COUNT(*) AS count_all, "stock_location_id" AS stock_location_id FROM "spree_inventory_units" INNER JOIN "spree_shipments" ON "spree_shipments"."id" = "spree_inventory_units"."shipment_id" WHERE "spree_inventory_units"."line_item_id" = ? AND "spree_inventory_units"."pending" = ? GROUP BY "stock_location_id" [["line_item_id", 1], ["pending", 1]]
13314
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."stock_location_id" = ? [["variant_id", 1], ["stock_location_id", 1]]
13315
+ Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."stock_location_id" = ? [["variant_id", 1], ["stock_location_id", 1]]
13316
+ Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" = ? AND "spree_adjustments"."eligible" = ? AND "spree_adjustments"."source_type" = ? [["order_id", 1], ["eligible", 1], ["source_type", "Spree::PromotionAction"]]
13317
+  (0.1ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 1]]
13318
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
13319
+ Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13320
+ Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13321
+  (0.1ms) SAVEPOINT active_record_1
13322
+ Spree::Payment Update (0.2ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = ? [["state", "processing"], ["updated_at", "2019-11-22 20:20:48.076283"], ["id", 1]]
13323
+ Spree::StateChange Create (0.4ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["next_state", "processing"], ["created_at", "2019-11-22 20:20:48.099728"], ["updated_at", "2019-11-22 20:20:48.099728"]]
13324
+ Spree::Order Update (0.5ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.078597"], ["id", 1]]
13325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13326
+ Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13327
+ Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13328
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13329
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13330
+ Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
13331
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13332
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13333
+  (0.3ms) SAVEPOINT active_record_1
13334
+ Spree::LogEntry Create (0.2ms) INSERT INTO "spree_log_entries" ("source_type", "source_id", "details", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source_type", "Spree::Payment"], ["source_id", 1], ["details", "--- !ruby/object:ActiveMerchant::Billing::Response\nparams: {}\nmessage: 'Bogus Gateway: Forced success'\nsuccess: true\ntest: true\nauthorization: '12345'\nfraud_review: \nerror_code: \nemv_authorization: \navs_result:\n code: D\n message: Street address and postal code match.\n street_match: Y\n postal_match: Y\ncvv_result:\n code: \n message: \n"], ["created_at", "2019-11-22 20:20:48.135275"], ["updated_at", "2019-11-22 20:20:48.135275"]]
13335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13336
+  (0.3ms) SAVEPOINT active_record_1
13337
+ Spree::Payment Update (0.1ms) UPDATE "spree_payments" SET "state" = ?, "avs_response" = ?, "updated_at" = ? WHERE "spree_payments"."id" = ? [["state", "pending"], ["avs_response", "D"], ["updated_at", "2019-11-22 20:20:48.140236"], ["id", 1]]
13338
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "processing"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["next_state", "pending"], ["created_at", "2019-11-22 20:20:48.143907"], ["updated_at", "2019-11-22 20:20:48.143907"]]
13339
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.142362"], ["id", 1]]
13340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13341
+  (0.1ms) SAVEPOINT active_record_1
13342
+ Spree::Store Load (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13343
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R673752083"], ["id", 1], ["LIMIT", 1]]
13344
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ?, "state" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.149204"], ["state", "complete"], ["id", 1]]
13345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13346
+  (0.2ms) SAVEPOINT active_record_1
13347
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "order"], ["previous_state", "confirm"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "complete"], ["created_at", "2019-11-22 20:20:48.151862"], ["updated_at", "2019-11-22 20:20:48.151862"]]
13348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13349
+  (0.2ms) SAVEPOINT active_record_1
13350
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R673752083"], ["id", 1], ["LIMIT", 1]]
13351
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13352
+ Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13353
+ Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"]]
13354
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13355
+ Spree::WalletPaymentSource Load (0.1ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."payment_source_type" = ? AND "spree_wallet_payment_sources"."payment_source_id" = ? LIMIT ? [["user_id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["LIMIT", 1]]
13356
+  (0.1ms) SAVEPOINT active_record_1
13357
+ Spree::WalletPaymentSource Exists? (0.1ms) SELECT 1 AS one FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."payment_source_type" = ? AND "spree_wallet_payment_sources"."payment_source_id" = ? LIMIT ? [["user_id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["LIMIT", 1]]
13358
+ Spree::WalletPaymentSource Create (0.2ms) INSERT INTO "spree_wallet_payment_sources" ("user_id", "payment_source_type", "payment_source_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["user_id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["created_at", "2019-11-22 20:20:48.189853"], ["updated_at", "2019-11-22 20:20:48.189853"]]
13359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13360
+ Spree::WalletPaymentSource Load (0.1ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
13361
+ Spree::WalletPaymentSource Load (0.2ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."default" = ? LIMIT ? [["user_id", 1], ["default", 1], ["LIMIT", 1]]
13362
+  (0.1ms) SAVEPOINT active_record_1
13363
+ Spree::WalletPaymentSource Load (0.1ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."default" = ? LIMIT ? [["user_id", 1], ["default", 1], ["LIMIT", 1]]
13364
+ Spree::WalletPaymentSource Exists? (0.2ms) SELECT 1 AS one FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."id" != ? AND "spree_wallet_payment_sources"."payment_source_type" = ? AND "spree_wallet_payment_sources"."payment_source_id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["LIMIT", 1]]
13365
+ Spree::WalletPaymentSource Update (0.1ms) UPDATE "spree_wallet_payment_sources" SET "default" = ?, "updated_at" = ? WHERE "spree_wallet_payment_sources"."id" = ? [["default", 1], ["updated_at", "2019-11-22 20:20:48.195666"], ["id", 1]]
13366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13367
+ Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" = ? [["order_id", 1]]
13368
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13369
+ Spree::Payment Exists? (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
13370
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
13371
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
13372
+ Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
13373
+  (0.1ms) SAVEPOINT active_record_1
13374
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13375
+ Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13376
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13377
+ Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = ? ORDER BY "spree_stock_items"."id" ASC LIMIT ? [["stock_location_id", 1], ["variant_id", 1], ["LIMIT", 1]]
13378
+ Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = ? ORDER BY "spree_stock_items"."id" ASC LIMIT ? [["stock_location_id", 1], ["variant_id", 1], ["LIMIT", 1]]
13379
+ Spree::StockMovement Create (0.5ms) INSERT INTO "spree_stock_movements" ("stock_item_id", "quantity", "created_at", "updated_at", "originator_type", "originator_id") VALUES (?, ?, ?, ?, ?, ?) [["stock_item_id", 1], ["quantity", -1], ["created_at", "2019-11-22 20:20:48.427881"], ["updated_at", "2019-11-22 20:20:48.427881"], ["originator_type", "Spree::Shipment"], ["originator_id", 1]]
13380
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13381
+ Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."id" = ? LIMIT ?  [["id", 1], ["LIMIT", 1]]
13382
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13383
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13384
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."id" != ? AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13385
+ Spree::StockItem Update (0.2ms) UPDATE "spree_stock_items" SET "count_on_hand" = ?, "updated_at" = ? WHERE "spree_stock_items"."id" = ? [["count_on_hand", -1], ["updated_at", "2019-11-22 20:20:48.443124"], ["id", 1]]
13386
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:48.444354"], ["id", 1]]
13387
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13388
+ Spree::InventoryUnit Update (0.2ms) UPDATE "spree_inventory_units" SET "pending" = ?, "updated_at" = ? WHERE "spree_inventory_units"."id" = ? [["pending", 0], ["updated_at", "2019-11-22 20:20:48.447885"], ["id", 1]]
13389
+ Spree::Product Update (0.2ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:48.447520"], ["id", 1]]
13390
+ Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13392
+  (0.1ms) SAVEPOINT active_record_1
13393
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R673752083"], ["id", 1], ["LIMIT", 1]]
13394
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ?, "shipment_state" = ?, "payment_state" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.456354"], ["shipment_state", "pending"], ["payment_state", "balance_due"], ["id", 1]]
13395
+ Spree::StateChange Create (0.3ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "checkout"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "balance_due"], ["created_at", "2019-11-22 20:20:48.458989"], ["updated_at", "2019-11-22 20:20:48.458989"]]
13396
+ Spree::StateChange Create (0.3ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "pending"], ["created_at", "2019-11-22 20:20:48.461296"], ["updated_at", "2019-11-22 20:20:48.461296"]]
13397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13398
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13399
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13400
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13401
+ Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13402
+  (0.2ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13403
+  (0.1ms) SAVEPOINT active_record_1
13404
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ?, "completed_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.483981"], ["completed_at", "2019-11-22 20:20:48.483981"], ["id", 1]]
13405
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13406
+ [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 46f43d9e-edad-4e48-b919-89e1b6ef10ff) to Async(mailers) with arguments: "Spree::OrderMailer", "confirm_email", "deliver_now", {:args=>[#<GlobalID:0x00007fab281ec348 @uri=#<URI::GID gid://dummy/Spree::Order/1>>]}
13407
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "confirmation_delivered" = ? WHERE "spree_orders"."id" = ? [["confirmation_delivered", 1], ["id", 1]]
13408
+ Order R673752083 transitioned from confirm to complete via complete
13409
+  (1.1ms) rollback transaction
13410
+  (0.3ms) begin transaction
13411
+  (1.1ms) SAVEPOINT active_record_1
13412
+ Spree::User Exists? (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email3@example.com"], ["LIMIT", 1]]
13413
+ Spree::User Create (0.5ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "520625299766e0f56b26eaca094ba213c9cacf078ffab51421f8e1ddf562194da66aa6e7261d3238b6d8af05ca053a6240a42ec1d2a0e393cc49b37a297bf032"], ["password_salt", "9tSrrxJPc1zPNL3nPM3v"], ["email", "email3@example.com"], ["login", "email3@example.com"], ["created_at", "2019-11-22 20:20:48.532790"], ["updated_at", "2019-11-22 20:20:48.532790"]]
13414
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
13415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13416
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13417
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
13418
+  (0.1ms) SAVEPOINT active_record_1
13419
+ Spree::Country Create (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:48.542556"], ["created_at", "2019-11-22 20:20:48.542556"]]
13420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13421
+  (0.2ms) SAVEPOINT active_record_1
13422
+ Spree::State Create (0.3ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:48.545632"], ["created_at", "2019-11-22 20:20:48.545632"]]
13423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13424
+  (0.2ms) SAVEPOINT active_record_1
13425
+ Spree::Address Create (0.3ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:48.554608"], ["updated_at", "2019-11-22 20:20:48.554608"]]
13426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13427
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13428
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13429
+  (0.1ms) SAVEPOINT active_record_1
13430
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10006"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:48.560827"], ["updated_at", "2019-11-22 20:20:48.560827"]]
13431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13432
+  (0.1ms) SAVEPOINT active_record_1
13433
+ Spree::Store Exists? (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_3"], ["LIMIT", 1]]
13434
+  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
13435
+ Spree::Store Create (0.4ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 3"], ["url", "www.example3.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_3"], ["default", 1], ["created_at", "2019-11-22 20:20:48.568481"], ["updated_at", "2019-11-22 20:20:48.568481"]]
13436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13437
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
13438
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
13439
+  (0.5ms) SAVEPOINT active_record_1
13440
+ Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
13441
+ Spree::StockLocation Create (0.4ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:48.579255"], ["updated_at", "2019-11-22 20:20:48.579255"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
13442
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
13443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13444
+  (0.1ms) SELECT sqlite_version(*)
13445
+ Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13446
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13447
+  (0.1ms) SAVEPOINT active_record_1
13448
+ Spree::ShippingCategory Create (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #3"], ["created_at", "2019-11-22 20:20:48.596461"], ["updated_at", "2019-11-22 20:20:48.596461"]]
13449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13450
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13451
+  (0.4ms) SAVEPOINT active_record_1
13452
+ Spree::TaxCategory Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 120652"], ["LIMIT", 1]]
13453
+ Spree::TaxCategory Create (0.3ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 120652"], ["created_at", "2019-11-22 20:20:48.602260"], ["updated_at", "2019-11-22 20:20:48.602260"], ["tax_code", "TaxCode - 694224"]]
13454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13455
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
13456
+  (0.1ms) SAVEPOINT active_record_1
13457
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-3-7767"], ["LIMIT", 1]]
13458
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-3-7767' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13459
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13460
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-3"], ["LIMIT", 1]]
13461
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13462
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-3"], ["LIMIT", 1]]
13463
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-3-7767"], ["LIMIT", 1]]
13464
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #3 - 7767"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:48.593554"], ["slug", "product-3-7767"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:48.619199"], ["updated_at", "2019-11-22 20:20:48.619199"]]
13465
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13466
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-3"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:48.620655"], ["created_at", "2019-11-22 20:20:48.620655"]]
13467
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:48.622951"], ["updated_at", "2019-11-22 20:20:48.622951"]]
13468
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13469
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13470
+ Spree::StockItem Create (0.5ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:48.629241"], ["updated_at", "2019-11-22 20:20:48.629241"], ["backorderable", 1]]
13471
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:48.631685"], ["id", 1]]
13472
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13473
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
13474
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13475
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13476
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13477
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-3-7767"]]
13478
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13479
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-3-7767"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:48.644666"], ["updated_at", "2019-11-22 20:20:48.644666"]]
13480
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13481
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:48.624179"], ["id", 1]]
13482
+ Spree::Product Update (0.2ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:48.647881"], ["id", 1]]
13483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13484
+  (0.1ms) SAVEPOINT active_record_1
13485
+ Spree::Order Exists? (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R082609839"], ["LIMIT", 1]]
13486
+ Spree::Order Exists? (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R082609839"], ["LIMIT", 1]]
13487
+ Spree::Order Exists? (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "HIcEQwAoFe_Gp1YoAxdbkQ"], ["LIMIT", 1]]
13488
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R082609839"], ["state", "complete"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email3@example.com"], ["created_at", "2019-11-22 20:20:48.657961"], ["updated_at", "2019-11-22 20:20:48.657961"], ["currency", "USD"], ["guest_token", "HIcEQwAoFe_Gp1YoAxdbkQ"], ["store_id", 1]]
13489
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13490
+ Spree::LineItem Create (0.4ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:20:48.664231"], ["updated_at", "2019-11-22 20:20:48.664231"], ["cost_price", 17.0], ["tax_category_id", 1]]
13491
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.666769"], ["id", 1]]
13492
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13493
+ Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13494
+  (0.1ms) SAVEPOINT active_record_1
13495
+ Spree::Shipment Exists? (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H73348866605"], ["LIMIT", 1]]
13496
+ Spree::Shipment Create (0.3ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H73348866605"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:20:48.672443"], ["updated_at", "2019-11-22 20:20:48.672443"], ["stock_location_id", 1]]
13497
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.673858"], ["id", 1]]
13498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13499
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13500
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"
13501
+  (0.2ms) SAVEPOINT active_record_1
13502
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13503
+ Spree::Zone Create (0.3ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:20:48.680164"], ["updated_at", "2019-11-22 20:20:48.680164"]]
13504
+ Spree::ZoneMember Create (0.4ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:48.682173"], ["updated_at", "2019-11-22 20:20:48.682173"]]
13505
+ Spree::Zone Update All (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
13506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13507
+  (0.1ms) SAVEPOINT active_record_1
13508
+ Spree::Zone Exists? (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13509
+ Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
13510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13511
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13512
+  (0.1ms) SAVEPOINT active_record_1
13513
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13514
+ Spree::ShippingMethod Create (0.3ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:20:48.697091"], ["updated_at", "2019-11-22 20:20:48.697091"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
13515
+ Spree::Calculator::Shipping::FlatRate Create (0.2ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:20:48.699098"], ["updated_at", "2019-11-22 20:20:48.699098"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
13516
+ Spree::ShippingMethodCategory Create (0.5ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:48.701317"], ["updated_at", "2019-11-22 20:20:48.701317"]]
13517
+ Spree::ShippingMethodZone Create (0.4ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:48.703954"], ["updated_at", "2019-11-22 20:20:48.703954"]]
13518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13519
+  (0.1ms) SAVEPOINT active_record_1
13520
+ Spree::ShippingRate Create (0.2ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:20:48.706924"], ["updated_at", "2019-11-22 20:20:48.706924"]]
13521
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:48.709001"], ["id", 1]]
13522
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.710454"], ["id", 1]]
13523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13524
+  (0.1ms) SAVEPOINT active_record_1
13525
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13526
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13527
+ Spree::InventoryUnit Create (0.3ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:20:48.717874"], ["updated_at", "2019-11-22 20:20:48.717874"], ["line_item_id", 1]]
13528
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:48.719131"], ["id", 1]]
13529
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.720875"], ["id", 1]]
13530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13531
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
13532
+  (0.2ms) SAVEPOINT active_record_1
13533
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
13534
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13535
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
13536
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
13537
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
13538
+ Spree::TaxRate Load (0.3ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13539
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13540
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13541
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13542
+  (0.2ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13543
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:20:48.741876"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
13544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13545
+  (0.1ms) SAVEPOINT active_record_1
13546
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R082609839"], ["id", 1], ["LIMIT", 1]]
13547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13548
+ Spree::InventoryUnit Update All (0.1ms) UPDATE "spree_inventory_units" SET "state" = ?, "pending" = ? WHERE "spree_inventory_units"."shipment_id" = ? [["state", "on_hand"], ["pending", 0], ["shipment_id", 1]]
13549
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "completed_at" = ? WHERE "spree_orders"."id" = ? [["completed_at", "2019-11-22 20:20:48.749751"], ["id", 1]]
13550
+  (0.1ms) SAVEPOINT active_record_1
13551
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13552
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:48.751854"], ["updated_at", "2019-11-22 20:20:48.751854"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
13553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13554
+  (0.1ms) SAVEPOINT active_record_1
13555
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13556
+ Spree::PaymentMethod::BogusCreditCard Create (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:48.757126"], ["updated_at", "2019-11-22 20:20:48.757126"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
13557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13558
+  (0.2ms) SAVEPOINT active_record_1
13559
+ Spree::CreditCard Create (0.3ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:20:48.764019"], ["updated_at", "2019-11-22 20:20:48.764019"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
13560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13561
+  (0.1ms) SAVEPOINT active_record_1
13562
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "67S26YYE"], ["LIMIT", 1]]
13563
+ Spree::Payment Create (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "pending"], ["response_code", "12345"], ["created_at", "2019-11-22 20:20:48.768871"], ["updated_at", "2019-11-22 20:20:48.768871"], ["number", "67S26YYE"]]
13564
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13565
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-023331"], ["LIMIT", 1]]
13566
+ Spree::CreditCard Update (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-023331"], ["updated_at", "2019-11-22 20:20:48.774220"], ["id", 1]]
13567
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13568
+ Spree::TaxRate Load (0.3ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13569
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
13570
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
13571
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
13572
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13573
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "shipment_state" = ?, "payment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["shipment_state", "pending"], ["payment_state", "balance_due"], ["updated_at", "2019-11-22 20:20:48.785892"], ["id", 1]]
13574
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "balance_due"], ["created_at", "2019-11-22 20:20:48.788405"], ["updated_at", "2019-11-22 20:20:48.788405"]]
13575
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "pending"], ["created_at", "2019-11-22 20:20:48.789481"], ["updated_at", "2019-11-22 20:20:48.789481"]]
13576
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.771343"], ["id", 1]]
13577
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13578
+  (0.2ms) SAVEPOINT active_record_1
13579
+ Spree::Payment Update (0.2ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = ? [["state", "completed"], ["updated_at", "2019-11-22 20:20:48.794476"], ["id", 1]]
13580
+ Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13581
+ Spree::Refund Load (0.1ms) SELECT "spree_refunds".* FROM "spree_refunds" WHERE "spree_refunds"."payment_id" = ? [["payment_id", 1]]
13582
+  (0.1ms) SELECT SUM("spree_refunds"."amount") FROM "spree_refunds" WHERE "spree_refunds"."payment_id" = ? [["payment_id", 1]]
13583
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13584
+ Spree::Payment Exists? (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
13585
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
13586
+  (0.2ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
13587
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "state" = ?, "updated_at" = ? WHERE "spree_shipments"."id" = ? [["state", "ready"], ["updated_at", "2019-11-22 20:20:48.814891"], ["id", 1]]
13588
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "payment_total" = ?, "shipment_state" = ?, "payment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["payment_total", 110.0], ["shipment_state", "ready"], ["payment_state", "paid"], ["updated_at", "2019-11-22 20:20:48.816722"], ["id", 1]]
13589
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "balance_due"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "paid"], ["created_at", "2019-11-22 20:20:48.818665"], ["updated_at", "2019-11-22 20:20:48.818665"]]
13590
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["previous_state", "pending"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "ready"], ["created_at", "2019-11-22 20:20:48.819932"], ["updated_at", "2019-11-22 20:20:48.819932"]]
13591
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["next_state", "completed"], ["created_at", "2019-11-22 20:20:48.821960"], ["updated_at", "2019-11-22 20:20:48.821960"]]
13592
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.796843"], ["id", 1]]
13593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13594
+  (1.2ms) rollback transaction
13595
+  (0.1ms) begin transaction
13596
+  (0.2ms) SAVEPOINT active_record_1
13597
+ Spree::User Exists? (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email4@example.com"], ["LIMIT", 1]]
13598
+ Spree::User Create (0.6ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "32242f00f16ff6cbcb6a59853e560cfda4e166408382f83d36e686b5814bf161924ea7a6601fb4f108934143d99b3b8255bc8685567f09d3cc982a52d84a7a4f"], ["password_salt", "KAgao6ioofAyyuuR3sux"], ["email", "email4@example.com"], ["login", "email4@example.com"], ["created_at", "2019-11-22 20:20:48.832161"], ["updated_at", "2019-11-22 20:20:48.832161"]]
13599
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
13600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13601
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13602
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
13603
+  (0.1ms) SAVEPOINT active_record_1
13604
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:48.840418"], ["created_at", "2019-11-22 20:20:48.840418"]]
13605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13606
+  (0.1ms) SAVEPOINT active_record_1
13607
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:48.843705"], ["created_at", "2019-11-22 20:20:48.843705"]]
13608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13609
+  (0.1ms) SAVEPOINT active_record_1
13610
+ Spree::Address Create (0.4ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10007"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:48.846057"], ["updated_at", "2019-11-22 20:20:48.846057"]]
13611
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13612
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13613
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13614
+  (0.1ms) SAVEPOINT active_record_1
13615
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10008"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:48.852064"], ["updated_at", "2019-11-22 20:20:48.852064"]]
13616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13617
+  (0.1ms) SAVEPOINT active_record_1
13618
+ Spree::Store Exists? (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_4"], ["LIMIT", 1]]
13619
+  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
13620
+ Spree::Store Create (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 4"], ["url", "www.example4.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_4"], ["default", 1], ["created_at", "2019-11-22 20:20:48.857125"], ["updated_at", "2019-11-22 20:20:48.857125"]]
13621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13622
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
13623
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
13624
+  (0.1ms) SAVEPOINT active_record_1
13625
+ Spree::StockLocation Load (0.6ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
13626
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:48.861437"], ["updated_at", "2019-11-22 20:20:48.861437"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
13627
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
13628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13629
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13630
+  (0.1ms) SAVEPOINT active_record_1
13631
+ Spree::ShippingCategory Create (0.2ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #4"], ["created_at", "2019-11-22 20:20:48.871084"], ["updated_at", "2019-11-22 20:20:48.871084"]]
13632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13633
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13634
+  (0.1ms) SAVEPOINT active_record_1
13635
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 608006"], ["LIMIT", 1]]
13636
+ Spree::TaxCategory Create (0.3ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 608006"], ["created_at", "2019-11-22 20:20:48.874720"], ["updated_at", "2019-11-22 20:20:48.874720"], ["tax_code", "TaxCode - 525901"]]
13637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13638
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
13639
+  (0.1ms) SAVEPOINT active_record_1
13640
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-4-8320"], ["LIMIT", 1]]
13641
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-4-8320' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13642
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13643
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-4"], ["LIMIT", 1]]
13644
+ Spree::TaxRate Exists? (0.4ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13645
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-4"], ["LIMIT", 1]]
13646
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-4-8320"], ["LIMIT", 1]]
13647
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #4 - 8320"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:48.870002"], ["slug", "product-4-8320"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:48.891408"], ["updated_at", "2019-11-22 20:20:48.891408"]]
13648
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13649
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-4"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:48.892987"], ["created_at", "2019-11-22 20:20:48.892987"]]
13650
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:48.895482"], ["updated_at", "2019-11-22 20:20:48.895482"]]
13651
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13652
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13653
+ Spree::StockItem Create (0.4ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:48.900670"], ["updated_at", "2019-11-22 20:20:48.900670"], ["backorderable", 1]]
13654
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:48.902672"], ["id", 1]]
13655
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13656
+ Spree::Variant Update (0.5ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
13657
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13658
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13659
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13660
+ FriendlyId::Slug Destroy (0.3ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-4-8320"]]
13661
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13662
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-4-8320"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:48.921088"], ["updated_at", "2019-11-22 20:20:48.921088"]]
13663
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13664
+ Spree::Variant Update (0.3ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:48.896643"], ["id", 1]]
13665
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:48.924745"], ["id", 1]]
13666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13667
+  (0.1ms) SAVEPOINT active_record_1
13668
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R798135968"], ["LIMIT", 1]]
13669
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R798135968"], ["LIMIT", 1]]
13670
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "-NogqT43bUiBaH4oegadVg"], ["LIMIT", 1]]
13671
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R798135968"], ["state", "complete"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email4@example.com"], ["created_at", "2019-11-22 20:20:48.929119"], ["updated_at", "2019-11-22 20:20:48.929119"], ["currency", "USD"], ["guest_token", "-NogqT43bUiBaH4oegadVg"], ["store_id", 1]]
13672
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13673
+ Spree::LineItem Create (0.5ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:20:48.933679"], ["updated_at", "2019-11-22 20:20:48.933679"], ["cost_price", 17.0], ["tax_category_id", 1]]
13674
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.936821"], ["id", 1]]
13675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13676
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
13677
+  (0.2ms) SAVEPOINT active_record_1
13678
+ Spree::Shipment Exists? (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H66681135721"], ["LIMIT", 1]]
13679
+ Spree::Shipment Create (0.3ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H66681135721"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:20:48.942208"], ["updated_at", "2019-11-22 20:20:48.942208"], ["stock_location_id", 1]]
13680
+ Spree::Order Update (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.943707"], ["id", 1]]
13681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13682
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13683
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"
13684
+  (0.1ms) SAVEPOINT active_record_1
13685
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
13686
+ Spree::Zone Create (0.3ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:20:48.948500"], ["updated_at", "2019-11-22 20:20:48.948500"]]
13687
+ Spree::ZoneMember Create (0.4ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:48.950351"], ["updated_at", "2019-11-22 20:20:48.950351"]]
13688
+ Spree::Zone Update All (0.3ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
13689
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13690
+  (0.1ms) SAVEPOINT active_record_1
13691
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13692
+ Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
13693
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13694
+ Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13695
+  (0.1ms) SAVEPOINT active_record_1
13696
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
13697
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:20:48.966150"], ["updated_at", "2019-11-22 20:20:48.966150"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
13698
+ Spree::Calculator::Shipping::FlatRate Create (0.3ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:20:48.967871"], ["updated_at", "2019-11-22 20:20:48.967871"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
13699
+ Spree::ShippingMethodCategory Create (0.3ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:48.970515"], ["updated_at", "2019-11-22 20:20:48.970515"]]
13700
+ Spree::ShippingMethodZone Create (0.2ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:20:48.971858"], ["updated_at", "2019-11-22 20:20:48.971858"]]
13701
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13702
+  (0.1ms) SAVEPOINT active_record_1
13703
+ Spree::ShippingRate Create (0.2ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:20:48.975490"], ["updated_at", "2019-11-22 20:20:48.975490"]]
13704
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:48.976716"], ["id", 1]]
13705
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.977716"], ["id", 1]]
13706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13707
+  (0.1ms) SAVEPOINT active_record_1
13708
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13709
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13710
+ Spree::InventoryUnit Create (0.2ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:20:48.981513"], ["updated_at", "2019-11-22 20:20:48.981513"], ["line_item_id", 1]]
13711
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:48.982582"], ["id", 1]]
13712
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:48.984123"], ["id", 1]]
13713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13714
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
13715
+  (0.1ms) SAVEPOINT active_record_1
13716
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
13717
+ Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13718
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
13719
+ Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
13720
+ Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
13721
+ Spree::TaxRate Load (0.3ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13722
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13723
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13724
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13725
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13726
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:20:49.008707"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
13727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13728
+  (0.1ms) SAVEPOINT active_record_1
13729
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R798135968"], ["id", 1], ["LIMIT", 1]]
13730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13731
+ Spree::InventoryUnit Update All (0.1ms) UPDATE "spree_inventory_units" SET "state" = ?, "pending" = ? WHERE "spree_inventory_units"."shipment_id" = ? [["state", "on_hand"], ["pending", 0], ["shipment_id", 1]]
13732
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "completed_at" = ? WHERE "spree_orders"."id" = ? [["completed_at", "2019-11-22 20:20:49.015898"], ["id", 1]]
13733
+  (0.1ms) SAVEPOINT active_record_1
13734
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13735
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:49.017662"], ["updated_at", "2019-11-22 20:20:49.017662"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
13736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13737
+  (0.1ms) SAVEPOINT active_record_1
13738
+ Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
13739
+ Spree::PaymentMethod::BogusCreditCard Create (0.1ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:20:49.023245"], ["updated_at", "2019-11-22 20:20:49.023245"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
13740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13741
+  (0.1ms) SAVEPOINT active_record_1
13742
+ Spree::CreditCard Create (0.2ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:20:49.027834"], ["updated_at", "2019-11-22 20:20:49.027834"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
13743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13744
+  (0.1ms) SAVEPOINT active_record_1
13745
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "R7NJDT2U"], ["LIMIT", 1]]
13746
+ Spree::Payment Create (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "pending"], ["response_code", "12345"], ["created_at", "2019-11-22 20:20:49.031355"], ["updated_at", "2019-11-22 20:20:49.031355"], ["number", "R7NJDT2U"]]
13747
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
13748
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-425002"], ["LIMIT", 1]]
13749
+ Spree::CreditCard Update (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-425002"], ["updated_at", "2019-11-22 20:20:49.037049"], ["id", 1]]
13750
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13751
+ Spree::TaxRate Load (0.3ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13752
+ Spree::Payment Exists? (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
13753
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
13754
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
13755
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13756
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "shipment_state" = ?, "payment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["shipment_state", "pending"], ["payment_state", "balance_due"], ["updated_at", "2019-11-22 20:20:49.049316"], ["id", 1]]
13757
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "balance_due"], ["created_at", "2019-11-22 20:20:49.051528"], ["updated_at", "2019-11-22 20:20:49.051528"]]
13758
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "pending"], ["created_at", "2019-11-22 20:20:49.052597"], ["updated_at", "2019-11-22 20:20:49.052597"]]
13759
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:49.033969"], ["id", 1]]
13760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13761
+  (0.1ms) SAVEPOINT active_record_1
13762
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "state" = ?, "updated_at" = ? WHERE "spree_shipments"."id" = ? [["state", "ready"], ["updated_at", "2019-11-22 20:20:49.056414"], ["id", 1]]
13763
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:49.058203"], ["id", 1]]
13764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13765
+  (0.1ms) SAVEPOINT active_record_1
13766
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "state" = ?, "updated_at" = ? WHERE "spree_shipments"."id" = ? [["state", "shipped"], ["updated_at", "2019-11-22 20:20:49.060352"], ["id", 1]]
13767
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:49.061451"], ["id", 1]]
13768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13769
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13770
+ Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13771
+  (0.1ms) SAVEPOINT active_record_1
13772
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? AND "spree_inventory_units"."state" = ? [["shipment_id", 1], ["state", "on_hand"]]
13773
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13774
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13775
+ Spree::InventoryUnit Update (0.1ms) UPDATE "spree_inventory_units" SET "state" = ?, "updated_at" = ? WHERE "spree_inventory_units"."id" = ? [["state", "shipped"], ["updated_at", "2019-11-22 20:20:49.070662"], ["id", 1]]
13776
+ Spree::Carton Exists? (0.2ms) SELECT 1 AS one FROM "spree_cartons" WHERE "spree_cartons"."number" = ? LIMIT ? [["number", "C70820103575"], ["LIMIT", 1]]
13777
+ Spree::Carton Create (0.4ms) INSERT INTO "spree_cartons" ("number", "stock_location_id", "address_id", "shipping_method_id", "tracking", "shipped_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["number", "C70820103575"], ["stock_location_id", 1], ["address_id", 2], ["shipping_method_id", 1], ["tracking", "U10000"], ["shipped_at", "2019-11-22 20:20:49.066740"], ["created_at", "2019-11-22 20:20:49.117317"], ["updated_at", "2019-11-22 20:20:49.117317"]]
13778
+ Spree::InventoryUnit Update (0.2ms) UPDATE "spree_inventory_units" SET "updated_at" = ?, "carton_id" = ? WHERE "spree_inventory_units"."id" = ? [["updated_at", "2019-11-22 20:20:49.119874"], ["carton_id", 1], ["id", 1]]
13779
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:20:49.120950"], ["id", 1]]
13780
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:20:49.122027"], ["id", 1]]
13781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13782
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
13783
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "state" = ?, "shipped_at" = ? WHERE "spree_shipments"."id" = ? [["state", "shipped"], ["shipped_at", "2019-11-22 20:20:49.125761"], ["id", 1]]
13784
+ Spree::Order Load (0.5ms) SELECT DISTINCT "spree_orders".* FROM "spree_orders" INNER JOIN "spree_shipments" ON "spree_orders"."id" = "spree_shipments"."order_id" INNER JOIN "spree_inventory_units" ON "spree_shipments"."id" = "spree_inventory_units"."shipment_id" WHERE "spree_inventory_units"."carton_id" = ? [["carton_id", 1]]
13785
+ [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 872c37fc-4d19-4531-a7e0-2509c1d4020d) to Async(mailers) with arguments: "Spree::CartonMailer", "shipped_email", "deliver_now", {:args=>[{:order=>#<GlobalID:0x00007fab2356e4d0 @uri=#<URI::GID gid://dummy/Spree::Order/1>>, :carton=>#<GlobalID:0x00007fab2815b2f8 @uri=#<URI::GID gid://dummy/Spree::Carton/1>>}]}
13786
+ Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13787
+  (0.2ms) SAVEPOINT active_record_1
13788
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
13789
+ Spree::TaxRate Load (0.3ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
13790
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
13791
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
13792
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "shipment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["shipment_state", "shipped"], ["updated_at", "2019-11-22 20:20:49.148010"], ["id", 1]]
13793
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["previous_state", "pending"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "shipped"], ["created_at", "2019-11-22 20:20:49.150100"], ["updated_at", "2019-11-22 20:20:49.150100"]]
13794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13795
+  (0.2ms) SAVEPOINT active_record_1
13796
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["previous_state", "ready"], ["stateful_id", 1], ["stateful_type", "Spree::Shipment"], ["next_state", "shipped"], ["created_at", "2019-11-22 20:20:49.152949"], ["updated_at", "2019-11-22 20:20:49.152949"]]
13797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13798
+  (1.3ms) rollback transaction
13799
+  (0.1ms) begin transaction
13800
+  (0.1ms) SAVEPOINT active_record_1
13801
+ Spree::User Exists? (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email5@example.com"], ["LIMIT", 1]]
13802
+ Spree::User Create (0.5ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "52d746cd86d34f382128a70408f005e8aedd3868d0fc011e239a2e5faa2f1051613221222b11803a9e81b160af8b6d854ac3a6b21c23583e39676dfa6cc2a29a"], ["password_salt", "aiMkXsS1BoEAex5qUK6b"], ["email", "email5@example.com"], ["login", "email5@example.com"], ["created_at", "2019-11-22 20:20:49.162323"], ["updated_at", "2019-11-22 20:20:49.162323"]]
13803
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
13804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13805
+ Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13806
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
13807
+  (0.1ms) SAVEPOINT active_record_1
13808
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:49.170354"], ["created_at", "2019-11-22 20:20:49.170354"]]
13809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13810
+  (0.1ms) SAVEPOINT active_record_1
13811
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:49.172203"], ["created_at", "2019-11-22 20:20:49.172203"]]
13812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13813
+  (0.1ms) SAVEPOINT active_record_1
13814
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10009"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:49.173773"], ["updated_at", "2019-11-22 20:20:49.173773"]]
13815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13816
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
13817
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13818
+  (0.1ms) SAVEPOINT active_record_1
13819
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10010"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:20:49.178198"], ["updated_at", "2019-11-22 20:20:49.178198"]]
13820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13821
+  (0.1ms) SAVEPOINT active_record_1
13822
+ Spree::Store Exists? (0.1ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_5"], ["LIMIT", 1]]
13823
+  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
13824
+ Spree::Store Create (0.2ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 5"], ["url", "www.example5.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_5"], ["default", 1], ["created_at", "2019-11-22 20:20:49.183486"], ["updated_at", "2019-11-22 20:20:49.183486"]]
13825
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13826
+  (0.1ms) SAVEPOINT active_record_1
13827
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R787077051"], ["LIMIT", 1]]
13828
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R787077051"], ["LIMIT", 1]]
13829
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "9co3kagoj1jE_ZDen2mmPA"], ["LIMIT", 1]]
13830
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R787077051"], ["state", "cart"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email5@example.com"], ["created_at", "2019-11-22 20:20:49.187520"], ["updated_at", "2019-11-22 20:20:49.187520"], ["currency", "USD"], ["guest_token", "9co3kagoj1jE_ZDen2mmPA"], ["store_id", 1]]
13831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13832
+  (0.7ms) rollback transaction
13833
+  (0.1ms) begin transaction
13834
+ Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13835
+  (0.1ms) SAVEPOINT active_record_1
13836
+ Spree::ShippingCategory Create (0.6ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #5"], ["created_at", "2019-11-22 20:20:49.200692"], ["updated_at", "2019-11-22 20:20:49.200692"]]
13837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13838
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13839
+  (0.1ms) SAVEPOINT active_record_1
13840
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 513980"], ["LIMIT", 1]]
13841
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 513980"], ["created_at", "2019-11-22 20:20:49.205688"], ["updated_at", "2019-11-22 20:20:49.205688"], ["tax_code", "TaxCode - 131005"]]
13842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13843
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
13844
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
13845
+  (0.1ms) SAVEPOINT active_record_1
13846
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:49.209018"], ["created_at", "2019-11-22 20:20:49.209018"]]
13847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13848
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
13849
+  (0.1ms) SAVEPOINT active_record_1
13850
+ Spree::State Create (0.3ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:49.213722"], ["created_at", "2019-11-22 20:20:49.213722"]]
13851
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13852
+  (0.1ms) SAVEPOINT active_record_1
13853
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
13854
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:49.216933"], ["updated_at", "2019-11-22 20:20:49.216933"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
13855
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
13856
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13857
+  (0.1ms) SAVEPOINT active_record_1
13858
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-5-1355"], ["LIMIT", 1]]
13859
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-5-1355' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13860
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13861
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-6"], ["LIMIT", 1]]
13862
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13863
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-6"], ["LIMIT", 1]]
13864
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-5-1355"], ["LIMIT", 1]]
13865
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #5 - 1355"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:49.198896"], ["slug", "product-5-1355"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:49.232034"], ["updated_at", "2019-11-22 20:20:49.232034"]]
13866
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13867
+ Spree::Variant Create (0.5ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-6"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.233452"], ["created_at", "2019-11-22 20:20:49.233452"]]
13868
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.236695"], ["updated_at", "2019-11-22 20:20:49.236695"]]
13869
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13870
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13871
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:49.242366"], ["updated_at", "2019-11-22 20:20:49.242366"], ["backorderable", 1]]
13872
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.243935"], ["id", 1]]
13873
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13874
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
13875
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13876
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13877
+ FriendlyId::Slug Load (0.2ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13878
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-5-1355"]]
13879
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13880
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-5-1355"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:49.254922"], ["updated_at", "2019-11-22 20:20:49.254922"]]
13881
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13882
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.237882"], ["id", 1]]
13883
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.257300"], ["id", 1]]
13884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13885
+  (0.1ms) SAVEPOINT active_record_1
13886
+ Spree::OptionType Exists? (0.2ms) SELECT 1 AS one FROM "spree_option_types" WHERE "spree_option_types"."name" = ? LIMIT ? [["name", "foo-size-1"], ["LIMIT", 1]]
13887
+ Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE (1 = 1) AND ("spree_option_types"."position" IS NOT NULL) ORDER BY "spree_option_types"."position" DESC LIMIT ? [["LIMIT", 1]]
13888
+ Spree::OptionType Create (0.2ms) INSERT INTO "spree_option_types" ("name", "presentation", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "foo-size-1"], ["presentation", "Size"], ["position", 1], ["created_at", "2019-11-22 20:20:49.285831"], ["updated_at", "2019-11-22 20:20:49.285831"]]
13889
+ Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_product_option_types" ON "spree_products"."id" = "spree_product_option_types"."product_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_product_option_types"."option_type_id" = ? ORDER BY "spree_products"."id" ASC LIMIT ? [["option_type_id", 1], ["LIMIT", 1000]]
13890
+  (0.2ms) RELEASE SAVEPOINT active_record_1
13891
+  (0.1ms) SAVEPOINT active_record_1
13892
+ Spree::OptionValue Exists? (0.2ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-1"], ["option_type_id", 1], ["LIMIT", 1]]
13893
+ Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = ? AND ("spree_option_values"."position" IS NOT NULL) ORDER BY "spree_option_values"."position" DESC LIMIT ? [["option_type_id", 1], ["LIMIT", 1]]
13894
+ Spree::OptionValue Create (0.2ms) INSERT INTO "spree_option_values" ("position", "name", "presentation", "option_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["position", 1], ["name", "Size-1"], ["presentation", "S"], ["option_type_id", 1], ["created_at", "2019-11-22 20:20:49.297609"], ["updated_at", "2019-11-22 20:20:49.297609"]]
13895
+ Spree::OptionValue Update (0.1ms) UPDATE "spree_option_values" SET "updated_at" = ? WHERE "spree_option_values"."id" = ? [["updated_at", "2019-11-22 20:20:49.300283"], ["id", 1]]
13896
+ Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" INNER JOIN "spree_option_values_variants" ON "spree_variants"."id" = "spree_option_values_variants"."variant_id" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_option_values_variants"."option_value_id" = ? ORDER BY "spree_variants"."id" ASC LIMIT ? [["option_value_id", 1], ["LIMIT", 1000]]
13897
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13898
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
13899
+  (0.1ms) SAVEPOINT active_record_1
13900
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13901
+ Spree::OptionValue Exists? (0.2ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."id" != ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-1"], ["id", 1], ["option_type_id", 1], ["LIMIT", 1]]
13902
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-5"], ["LIMIT", 1]]
13903
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13904
+ Spree::Variant Create (0.1ms) INSERT INTO "spree_variants" ("sku", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-5"], ["product_id", 1], ["cost_price", 17.0], ["position", 2], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.320324"], ["created_at", "2019-11-22 20:20:49.320324"]]
13905
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 2], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.322541"], ["updated_at", "2019-11-22 20:20:49.322541"]]
13906
+ Spree::OptionValuesVariant Create (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["variant_id", 2], ["option_value_id", 1], ["created_at", "2019-11-22 20:20:49.324951"], ["updated_at", "2019-11-22 20:20:49.324951"]]
13907
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13908
+ Spree::StockItem Exists? (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 2], ["stock_location_id", 1], ["LIMIT", 1]]
13909
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 2], ["created_at", "2019-11-22 20:20:49.333943"], ["updated_at", "2019-11-22 20:20:49.333943"], ["backorderable", 1]]
13910
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.335780"], ["id", 2]]
13911
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13912
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 3], ["id", 2]]
13913
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13914
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 2], ["active", 1]]
13915
+ Spree::Variant Update (0.3ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.323603"], ["id", 2]]
13916
+ Spree::Product Update (0.7ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.346654"], ["id", 1]]
13917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13918
+  (0.1ms) SAVEPOINT active_record_1
13919
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" != ? LIMIT ? [["sku", "SKU-5"], ["id", 2], ["LIMIT", 1]]
13920
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.349450"], ["id", 2]]
13921
+ Spree::Product Update (0.2ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.353241"], ["id", 1]]
13922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13923
+  (0.6ms) rollback transaction
13924
+  (0.1ms) begin transaction
13925
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13926
+  (0.1ms) SAVEPOINT active_record_1
13927
+ Spree::ShippingCategory Create (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #6"], ["created_at", "2019-11-22 20:20:49.364819"], ["updated_at", "2019-11-22 20:20:49.364819"]]
13928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13929
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
13930
+  (0.1ms) SAVEPOINT active_record_1
13931
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 750539"], ["LIMIT", 1]]
13932
+ Spree::TaxCategory Create (0.3ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 750539"], ["created_at", "2019-11-22 20:20:49.369434"], ["updated_at", "2019-11-22 20:20:49.369434"], ["tax_code", "TaxCode - 539092"]]
13933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13934
+  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations"
13935
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
13936
+  (0.1ms) SAVEPOINT active_record_1
13937
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:49.374863"], ["created_at", "2019-11-22 20:20:49.374863"]]
13938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13939
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
13940
+  (0.1ms) SAVEPOINT active_record_1
13941
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:49.379932"], ["created_at", "2019-11-22 20:20:49.379932"]]
13942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13943
+  (0.1ms) SAVEPOINT active_record_1
13944
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
13945
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:49.382683"], ["updated_at", "2019-11-22 20:20:49.382683"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
13946
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
13947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13948
+  (0.1ms) SAVEPOINT active_record_1
13949
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-6-223"], ["LIMIT", 1]]
13950
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-6-223' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13951
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13952
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-8"], ["LIMIT", 1]]
13953
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13954
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-8"], ["LIMIT", 1]]
13955
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-6-223"], ["LIMIT", 1]]
13956
+ Spree::Product Create (0.2ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #6 - 223"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:49.363504"], ["slug", "product-6-223"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:49.396133"], ["updated_at", "2019-11-22 20:20:49.396133"]]
13957
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13958
+ Spree::Variant Create (0.2ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-8"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.397175"], ["created_at", "2019-11-22 20:20:49.397175"]]
13959
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.398805"], ["updated_at", "2019-11-22 20:20:49.398805"]]
13960
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13961
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
13962
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:49.403338"], ["updated_at", "2019-11-22 20:20:49.403338"], ["backorderable", 1]]
13963
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.404443"], ["id", 1]]
13964
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
13965
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
13966
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13967
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
13968
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
13969
+ FriendlyId::Slug Destroy (0.3ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-6-223"]]
13970
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
13971
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-6-223"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:49.415263"], ["updated_at", "2019-11-22 20:20:49.415263"]]
13972
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
13973
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.399552"], ["id", 1]]
13974
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.417867"], ["id", 1]]
13975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13976
+  (0.1ms) SAVEPOINT active_record_1
13977
+ Spree::OptionType Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_types" WHERE "spree_option_types"."name" = ? LIMIT ? [["name", "foo-size-2"], ["LIMIT", 1]]
13978
+ Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE (1 = 1) AND ("spree_option_types"."position" IS NOT NULL) ORDER BY "spree_option_types"."position" DESC LIMIT ? [["LIMIT", 1]]
13979
+ Spree::OptionType Create (0.2ms) INSERT INTO "spree_option_types" ("name", "presentation", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "foo-size-2"], ["presentation", "Size"], ["position", 1], ["created_at", "2019-11-22 20:20:49.420563"], ["updated_at", "2019-11-22 20:20:49.420563"]]
13980
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_product_option_types" ON "spree_products"."id" = "spree_product_option_types"."product_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_product_option_types"."option_type_id" = ? ORDER BY "spree_products"."id" ASC LIMIT ? [["option_type_id", 1], ["LIMIT", 1000]]
13981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13982
+  (0.1ms) SAVEPOINT active_record_1
13983
+ Spree::OptionValue Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-2"], ["option_type_id", 1], ["LIMIT", 1]]
13984
+ Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = ? AND ("spree_option_values"."position" IS NOT NULL) ORDER BY "spree_option_values"."position" DESC LIMIT ? [["option_type_id", 1], ["LIMIT", 1]]
13985
+ Spree::OptionValue Create (0.2ms) INSERT INTO "spree_option_values" ("position", "name", "presentation", "option_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["position", 1], ["name", "Size-2"], ["presentation", "S"], ["option_type_id", 1], ["created_at", "2019-11-22 20:20:49.427028"], ["updated_at", "2019-11-22 20:20:49.427028"]]
13986
+ Spree::OptionValue Update (0.1ms) UPDATE "spree_option_values" SET "updated_at" = ? WHERE "spree_option_values"."id" = ? [["updated_at", "2019-11-22 20:20:49.428894"], ["id", 1]]
13987
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" INNER JOIN "spree_option_values_variants" ON "spree_variants"."id" = "spree_option_values_variants"."variant_id" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_option_values_variants"."option_value_id" = ? ORDER BY "spree_variants"."id" ASC LIMIT ? [["option_value_id", 1], ["LIMIT", 1000]]
13988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13989
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
13990
+  (0.1ms) SAVEPOINT active_record_1
13991
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
13992
+ Spree::OptionValue Exists? (0.2ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."id" != ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-2"], ["id", 1], ["option_type_id", 1], ["LIMIT", 1]]
13993
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-7"], ["LIMIT", 1]]
13994
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
13995
+ Spree::Variant Create (0.1ms) INSERT INTO "spree_variants" ("sku", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-7"], ["product_id", 1], ["cost_price", 17.0], ["position", 2], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.437904"], ["created_at", "2019-11-22 20:20:49.437904"]]
13996
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 2], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.440164"], ["updated_at", "2019-11-22 20:20:49.440164"]]
13997
+ Spree::OptionValuesVariant Create (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["variant_id", 2], ["option_value_id", 1], ["created_at", "2019-11-22 20:20:49.442149"], ["updated_at", "2019-11-22 20:20:49.442149"]]
13998
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
13999
+ Spree::StockItem Exists? (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 2], ["stock_location_id", 1], ["LIMIT", 1]]
14000
+ Spree::StockItem Create (0.1ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 2], ["created_at", "2019-11-22 20:20:49.445938"], ["updated_at", "2019-11-22 20:20:49.445938"], ["backorderable", 1]]
14001
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.446915"], ["id", 2]]
14002
+  (0.2ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14003
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 3], ["id", 2]]
14004
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14005
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 2], ["active", 1]]
14006
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.441307"], ["id", 2]]
14007
+ Spree::Product Update (0.5ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.454763"], ["id", 1]]
14008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14009
+  (0.1ms) SAVEPOINT active_record_1
14010
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14011
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14012
+ Spree::Variant Create (0.2ms) INSERT INTO "spree_variants" ("product_id", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["product_id", 1], ["position", 4], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.462789"], ["created_at", "2019-11-22 20:20:49.462789"]]
14013
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 3], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.465500"], ["updated_at", "2019-11-22 20:20:49.465500"]]
14014
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14015
+ Spree::StockItem Exists? (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 3], ["stock_location_id", 1], ["LIMIT", 1]]
14016
+ Spree::StockItem Create (0.4ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 3], ["created_at", "2019-11-22 20:20:49.469716"], ["updated_at", "2019-11-22 20:20:49.469716"], ["backorderable", 1]]
14017
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.471218"], ["id", 3]]
14018
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14019
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 5], ["id", 3]]
14020
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.466410"], ["id", 3]]
14021
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.475829"], ["id", 1]]
14022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14023
+  (0.9ms) rollback transaction
14024
+  (0.2ms) begin transaction
14025
+ Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14026
+  (0.1ms) SAVEPOINT active_record_1
14027
+ Spree::ShippingCategory Create (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #7"], ["created_at", "2019-11-22 20:20:49.487094"], ["updated_at", "2019-11-22 20:20:49.487094"]]
14028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14029
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14030
+  (0.1ms) SAVEPOINT active_record_1
14031
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 427441"], ["LIMIT", 1]]
14032
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 427441"], ["created_at", "2019-11-22 20:20:49.490780"], ["updated_at", "2019-11-22 20:20:49.490780"], ["tax_code", "TaxCode - 615308"]]
14033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14034
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14035
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
14036
+  (0.1ms) SAVEPOINT active_record_1
14037
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:20:49.493952"], ["created_at", "2019-11-22 20:20:49.493952"]]
14038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14039
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
14040
+  (0.1ms) SAVEPOINT active_record_1
14041
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:20:49.498186"], ["created_at", "2019-11-22 20:20:49.498186"]]
14042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14043
+  (0.1ms) SAVEPOINT active_record_1
14044
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
14045
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:20:49.500088"], ["updated_at", "2019-11-22 20:20:49.500088"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
14046
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
14047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14048
+  (0.1ms) SAVEPOINT active_record_1
14049
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-7-5493"], ["LIMIT", 1]]
14050
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-7-5493' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14051
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14052
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-10"], ["LIMIT", 1]]
14053
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14054
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-10"], ["LIMIT", 1]]
14055
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-7-5493"], ["LIMIT", 1]]
14056
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #7 - 5493"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:20:49.485061"], ["slug", "product-7-5493"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:20:49.514737"], ["updated_at", "2019-11-22 20:20:49.514737"]]
14057
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14058
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-10"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.516246"], ["created_at", "2019-11-22 20:20:49.516246"]]
14059
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.518831"], ["updated_at", "2019-11-22 20:20:49.518831"]]
14060
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14061
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
14062
+ Spree::StockItem Create (0.4ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:20:49.523485"], ["updated_at", "2019-11-22 20:20:49.523485"], ["backorderable", 1]]
14063
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.524895"], ["id", 1]]
14064
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14065
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
14066
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14067
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14068
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14069
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-7-5493"]]
14070
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14071
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-7-5493"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:20:49.535688"], ["updated_at", "2019-11-22 20:20:49.535688"]]
14072
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14073
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.519827"], ["id", 1]]
14074
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.538688"], ["id", 1]]
14075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14076
+  (0.1ms) SAVEPOINT active_record_1
14077
+ Spree::OptionType Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_types" WHERE "spree_option_types"."name" = ? LIMIT ? [["name", "foo-size-3"], ["LIMIT", 1]]
14078
+ Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE (1 = 1) AND ("spree_option_types"."position" IS NOT NULL) ORDER BY "spree_option_types"."position" DESC LIMIT ? [["LIMIT", 1]]
14079
+ Spree::OptionType Create (0.2ms) INSERT INTO "spree_option_types" ("name", "presentation", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "foo-size-3"], ["presentation", "Size"], ["position", 1], ["created_at", "2019-11-22 20:20:49.542064"], ["updated_at", "2019-11-22 20:20:49.542064"]]
14080
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_product_option_types" ON "spree_products"."id" = "spree_product_option_types"."product_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_product_option_types"."option_type_id" = ? ORDER BY "spree_products"."id" ASC LIMIT ? [["option_type_id", 1], ["LIMIT", 1000]]
14081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14082
+  (0.1ms) SAVEPOINT active_record_1
14083
+ Spree::OptionValue Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-3"], ["option_type_id", 1], ["LIMIT", 1]]
14084
+ Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = ? AND ("spree_option_values"."position" IS NOT NULL) ORDER BY "spree_option_values"."position" DESC LIMIT ? [["option_type_id", 1], ["LIMIT", 1]]
14085
+ Spree::OptionValue Create (0.2ms) INSERT INTO "spree_option_values" ("position", "name", "presentation", "option_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["position", 1], ["name", "Size-3"], ["presentation", "S"], ["option_type_id", 1], ["created_at", "2019-11-22 20:20:49.548172"], ["updated_at", "2019-11-22 20:20:49.548172"]]
14086
+ Spree::OptionValue Update (0.1ms) UPDATE "spree_option_values" SET "updated_at" = ? WHERE "spree_option_values"."id" = ? [["updated_at", "2019-11-22 20:20:49.550232"], ["id", 1]]
14087
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" INNER JOIN "spree_option_values_variants" ON "spree_variants"."id" = "spree_option_values_variants"."variant_id" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_option_values_variants"."option_value_id" = ? ORDER BY "spree_variants"."id" ASC LIMIT ? [["option_value_id", 1], ["LIMIT", 1000]]
14088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14089
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14090
+  (0.1ms) SAVEPOINT active_record_1
14091
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14092
+ Spree::OptionValue Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."id" != ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-3"], ["id", 1], ["option_type_id", 1], ["LIMIT", 1]]
14093
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-9"], ["LIMIT", 1]]
14094
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14095
+ Spree::Variant Create (0.1ms) INSERT INTO "spree_variants" ("sku", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-9"], ["product_id", 1], ["cost_price", 17.0], ["position", 2], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:20:49.561202"], ["created_at", "2019-11-22 20:20:49.561202"]]
14096
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 2], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:20:49.563558"], ["updated_at", "2019-11-22 20:20:49.563558"]]
14097
+ Spree::OptionValuesVariant Create (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["variant_id", 2], ["option_value_id", 1], ["created_at", "2019-11-22 20:20:49.565202"], ["updated_at", "2019-11-22 20:20:49.565202"]]
14098
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14099
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 2], ["stock_location_id", 1], ["LIMIT", 1]]
14100
+ Spree::StockItem Create (0.2ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 2], ["created_at", "2019-11-22 20:20:49.592280"], ["updated_at", "2019-11-22 20:20:49.592280"], ["backorderable", 1]]
14101
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.593644"], ["id", 2]]
14102
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14103
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 3], ["id", 2]]
14104
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14105
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 2], ["active", 1]]
14106
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.564435"], ["id", 2]]
14107
+ Spree::Product Update (0.5ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.603045"], ["id", 1]]
14108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14109
+  (0.1ms) SAVEPOINT active_record_1
14110
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
14111
+ Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = ? AND "spree_prices"."country_iso" IS NULL ORDER BY country_iso IS NULL, "spree_prices"."updated_at" DESC, "spree_prices"."id" DESC LIMIT ? [["variant_id", 2], ["currency", "USD"], ["LIMIT", 1]]
14112
+ Spree::Price Update (0.2ms) UPDATE "spree_prices" SET "deleted_at" = ?, "updated_at" = ? WHERE "spree_prices"."id" = ? [["deleted_at", "2019-11-22 20:20:49.608437"], ["updated_at", "2019-11-22 20:20:49.608451"], ["id", 2]]
14113
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14114
+ Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? [["variant_id", 2]]
14115
+ Spree::StockItem Update (0.2ms) UPDATE "spree_stock_items" SET "deleted_at" = ?, "updated_at" = ? WHERE "spree_stock_items"."id" = ? [["deleted_at", "2019-11-22 20:20:49.613099"], ["updated_at", "2019-11-22 20:20:49.613120"], ["id", 2]]
14116
+ Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" = ? AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["type", "Spree::Image"], ["viewable_id", 2], ["viewable_type", "Spree::Variant"]]
14117
+ Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 2]]
14118
+ Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? ORDER BY country_iso IS NULL, "spree_prices"."updated_at" DESC, "spree_prices"."id" DESC [["variant_id", 2]]
14119
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "deleted_at" = ?, "updated_at" = ? WHERE "spree_variants"."id" = ? [["deleted_at", "2019-11-22 20:20:49.630240"], ["updated_at", "2019-11-22 20:20:49.630254"], ["id", 2]]
14120
+ Spree::Variant Update All (0.2ms) UPDATE "spree_variants" SET "position" = ("spree_variants"."position" - 1), "updated_at" = '2019-11-22 20:20:49.635398' WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" > 3) [["product_id", 1]]
14121
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:20:49.609415"], ["id", 2]]
14122
+ Spree::Product Update (0.3ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:20:49.637579"], ["id", 1]]
14123
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14125
+  (0.9ms) rollback transaction
14126
+ solidus_drip, default_url_options was blank and is being set to localhost
14127
+  (2.5ms) SELECT sqlite_version(*)
14128
+  (0.1ms) PRAGMA foreign_keys
14129
+  (0.0ms) PRAGMA defer_foreign_keys
14130
+  (0.0ms) PRAGMA defer_foreign_keys = ON
14131
+  (0.0ms) PRAGMA foreign_keys = OFF
14132
+  (1.5ms) DELETE FROM "ar_internal_metadata";
14133
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14134
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
14135
+  (1.3ms) DELETE FROM "active_storage_blobs";
14136
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14137
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'active_storage_blobs';
14138
+  (1.5ms) DELETE FROM "active_storage_attachments";
14139
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14140
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'active_storage_attachments';
14141
+  (1.4ms) DELETE FROM "action_mailbox_inbound_emails";
14142
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14143
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'action_mailbox_inbound_emails';
14144
+  (0.9ms) DELETE FROM "action_text_rich_texts";
14145
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14146
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'action_text_rich_texts';
14147
+  (1.5ms) DELETE FROM "friendly_id_slugs";
14148
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14149
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'friendly_id_slugs';
14150
+  (2.2ms) DELETE FROM "spree_addresses";
14151
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14152
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_addresses';
14153
+  (1.3ms) DELETE FROM "spree_adjustment_reasons";
14154
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14155
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_adjustment_reasons';
14156
+  (2.6ms) DELETE FROM "spree_adjustments";
14157
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14158
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_adjustments';
14159
+  (1.4ms) DELETE FROM "spree_assets";
14160
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14161
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_assets';
14162
+  (1.4ms) DELETE FROM "spree_calculators";
14163
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14164
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_calculators';
14165
+  (2.2ms) DELETE FROM "spree_cartons";
14166
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14167
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_cartons';
14168
+  (1.1ms) DELETE FROM "spree_countries";
14169
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14170
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_countries';
14171
+  (0.8ms) DELETE FROM "spree_credit_cards";
14172
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14173
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_credit_cards';
14174
+  (0.9ms) DELETE FROM "spree_customer_returns";
14175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14176
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_customer_returns';
14177
+  (1.4ms) DELETE FROM "spree_line_item_actions";
14178
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14179
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_line_item_actions';
14180
+  (1.4ms) DELETE FROM "spree_log_entries";
14181
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14182
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_log_entries';
14183
+  (0.6ms) DELETE FROM "spree_option_type_prototypes";
14184
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14185
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_type_prototypes';
14186
+  (0.9ms) DELETE FROM "spree_option_types";
14187
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14188
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_types';
14189
+  (1.2ms) DELETE FROM "spree_option_values";
14190
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14191
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_values';
14192
+  (1.2ms) DELETE FROM "spree_option_values_variants";
14193
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14194
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_option_values_variants';
14195
+  (0.9ms) DELETE FROM "spree_order_mutexes";
14196
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14197
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_order_mutexes';
14198
+  (1.8ms) DELETE FROM "spree_orders";
14199
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14200
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_orders';
14201
+  (1.5ms) DELETE FROM "spree_orders_promotions";
14202
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14203
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_orders_promotions';
14204
+  (1.2ms) DELETE FROM "spree_payment_capture_events";
14205
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14206
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_payment_capture_events';
14207
+  (1.7ms) DELETE FROM "spree_payments";
14208
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14209
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_payments';
14210
+  (1.4ms) DELETE FROM "spree_preferences";
14211
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14212
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_preferences';
14213
+  (1.5ms) DELETE FROM "spree_product_option_types";
14214
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14215
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_product_option_types';
14216
+  (1.6ms) DELETE FROM "spree_product_promotion_rules";
14217
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14218
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_product_promotion_rules';
14219
+  (2.1ms) DELETE FROM "spree_product_properties";
14220
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14221
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_product_properties';
14222
+  (1.9ms) DELETE FROM "spree_products";
14223
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14224
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_products';
14225
+  (1.8ms) DELETE FROM "spree_products_taxons";
14226
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14227
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_products_taxons';
14228
+  (1.5ms) DELETE FROM "spree_promotion_action_line_items";
14229
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14230
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_action_line_items';
14231
+  (2.2ms) DELETE FROM "spree_promotion_actions";
14232
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14233
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_actions';
14234
+  (1.5ms) DELETE FROM "spree_promotion_categories";
14235
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14236
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_categories';
14237
+  (1.7ms) DELETE FROM "spree_promotion_rule_taxons";
14238
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14239
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rule_taxons';
14240
+  (1.9ms) DELETE FROM "spree_promotion_rules";
14241
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14242
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rules';
14243
+  (2.0ms) DELETE FROM "spree_promotion_rules_users";
14244
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14245
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rules_users';
14246
+  (0.9ms) DELETE FROM "spree_properties";
14247
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14248
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_properties';
14249
+  (1.0ms) DELETE FROM "spree_property_prototypes";
14250
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14251
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_property_prototypes';
14252
+  (1.3ms) DELETE FROM "spree_prototype_taxons";
14253
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14254
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_prototype_taxons';
14255
+  (1.0ms) DELETE FROM "spree_prototypes";
14256
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14257
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_prototypes';
14258
+  (0.9ms) DELETE FROM "spree_refund_reasons";
14259
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14260
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_refund_reasons';
14261
+  (1.0ms) DELETE FROM "spree_refunds";
14262
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14263
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_refunds';
14264
+  (0.9ms) DELETE FROM "spree_reimbursement_credits";
14265
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14266
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_reimbursement_credits';
14267
+  (0.9ms) DELETE FROM "spree_reimbursement_types";
14268
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14269
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_reimbursement_types';
14270
+  (1.0ms) DELETE FROM "spree_reimbursements";
14271
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14272
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_reimbursements';
14273
+  (1.0ms) DELETE FROM "spree_return_authorizations";
14274
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14275
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_return_authorizations';
14276
+  (1.0ms) DELETE FROM "spree_return_items";
14277
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14278
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_return_items';
14279
+  (1.0ms) DELETE FROM "spree_return_reasons";
14280
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14281
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_return_reasons';
14282
+  (1.3ms) DELETE FROM "spree_roles";
14283
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14284
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_roles';
14285
+  (1.4ms) DELETE FROM "spree_roles_users";
14286
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14287
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_roles_users';
14288
+  (2.3ms) DELETE FROM "spree_shipments";
14289
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14290
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipments';
14291
+  (1.1ms) DELETE FROM "spree_shipping_categories";
14292
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14293
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_categories';
14294
+  (1.3ms) DELETE FROM "spree_shipping_method_categories";
14295
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14296
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_method_categories';
14297
+  (1.5ms) DELETE FROM "spree_shipping_method_stock_locations";
14298
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14299
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_method_stock_locations';
14300
+  (1.0ms) DELETE FROM "spree_shipping_method_zones";
14301
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14302
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_method_zones';
14303
+  (1.4ms) DELETE FROM "spree_shipping_rate_taxes";
14304
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14305
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_rate_taxes';
14306
+  (1.2ms) DELETE FROM "spree_shipping_rates";
14307
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14308
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_rates';
14309
+  (0.9ms) DELETE FROM "spree_state_changes";
14310
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14311
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_state_changes';
14312
+  (1.2ms) DELETE FROM "spree_states";
14313
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14314
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_states';
14315
+  (1.1ms) DELETE FROM "spree_stock_items";
14316
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14317
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stock_items';
14318
+  (1.3ms) DELETE FROM "spree_stock_locations";
14319
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14320
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stock_locations';
14321
+  (1.1ms) DELETE FROM "spree_stock_movements";
14322
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14323
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stock_movements';
14324
+  (0.7ms) DELETE FROM "spree_store_credit_categories";
14325
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14326
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_categories';
14327
+  (1.4ms) DELETE FROM "spree_store_credit_types";
14328
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14329
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_types';
14330
+  (1.8ms) DELETE FROM "spree_store_payment_methods";
14331
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14332
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_payment_methods';
14333
+  (1.6ms) DELETE FROM "spree_stores";
14334
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14335
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_stores';
14336
+  (0.9ms) DELETE FROM "spree_tax_categories";
14337
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14338
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_tax_categories';
14339
+  (1.1ms) DELETE FROM "spree_taxonomies";
14340
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14341
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_taxonomies';
14342
+  (1.8ms) DELETE FROM "spree_taxons";
14343
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14344
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_taxons';
14345
+  (1.0ms) DELETE FROM "spree_unit_cancels";
14346
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14347
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_unit_cancels';
14348
+  (0.8ms) DELETE FROM "spree_user_addresses";
14349
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14350
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_user_addresses';
14351
+  (1.0ms) DELETE FROM "spree_user_stock_locations";
14352
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14353
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_user_stock_locations';
14354
+  (0.7ms) DELETE FROM "spree_variant_property_rule_conditions";
14355
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14356
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variant_property_rule_conditions';
14357
+  (0.8ms) DELETE FROM "spree_variant_property_rule_values";
14358
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14359
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variant_property_rule_values';
14360
+  (0.9ms) DELETE FROM "spree_variant_property_rules";
14361
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14362
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variant_property_rules';
14363
+  (1.2ms) DELETE FROM "spree_variants";
14364
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14365
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_variants';
14366
+  (1.3ms) DELETE FROM "spree_zone_members";
14367
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14368
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_zone_members';
14369
+  (1.4ms) DELETE FROM "spree_wallet_payment_sources";
14370
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14371
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_wallet_payment_sources';
14372
+  (1.6ms) DELETE FROM "spree_prices";
14373
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14374
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_prices';
14375
+  (2.2ms) DELETE FROM "spree_line_items";
14376
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14377
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_line_items';
14378
+  (1.7ms) DELETE FROM "spree_payment_methods";
14379
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14380
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_payment_methods';
14381
+  (1.7ms) DELETE FROM "spree_promotion_code_batches";
14382
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14383
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_code_batches';
14384
+  (2.7ms) DELETE FROM "spree_promotion_codes";
14385
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14386
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_codes';
14387
+  (1.9ms) DELETE FROM "spree_shipping_methods";
14388
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14389
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_shipping_methods';
14390
+  (2.5ms) DELETE FROM "spree_store_credits";
14391
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14392
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credits';
14393
+  (2.1ms) DELETE FROM "spree_inventory_units";
14394
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14395
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_inventory_units';
14396
+  (1.7ms) DELETE FROM "spree_tax_rate_tax_categories";
14397
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14398
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_tax_rate_tax_categories';
14399
+  (1.7ms) DELETE FROM "spree_tax_rates";
14400
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14401
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_tax_rates';
14402
+  (1.1ms) DELETE FROM "spree_zones";
14403
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14404
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_zones';
14405
+  (1.3ms) DELETE FROM "spree_promotion_rules_stores";
14406
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14407
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotion_rules_stores';
14408
+  (1.2ms) DELETE FROM "spree_store_shipping_methods";
14409
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14410
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_shipping_methods';
14411
+  (0.9ms) DELETE FROM "spree_store_credit_reasons";
14412
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14413
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_reasons';
14414
+  (2.0ms) DELETE FROM "spree_promotions";
14415
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14416
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_promotions';
14417
+  (1.2ms) DELETE FROM "spree_store_credit_events";
14418
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14419
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_store_credit_events';
14420
+  (1.8ms) DELETE FROM "spree_users";
14421
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
14422
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'spree_users';
14423
+  (0.0ms) PRAGMA defer_foreign_keys = 0
14424
+  (0.0ms) PRAGMA foreign_keys = 1
14425
+  (0.1ms) begin transaction
14426
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14427
+  (0.1ms) SAVEPOINT active_record_1
14428
+ Spree::ShippingCategory Create (0.6ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #1"], ["created_at", "2019-11-22 20:25:48.704134"], ["updated_at", "2019-11-22 20:25:48.704134"]]
14429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14430
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14431
+  (0.1ms) SAVEPOINT active_record_1
14432
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 915793"], ["LIMIT", 1]]
14433
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 915793"], ["created_at", "2019-11-22 20:25:48.748345"], ["updated_at", "2019-11-22 20:25:48.748345"], ["tax_code", "TaxCode - 169382"]]
14434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14435
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14436
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
14437
+  (0.1ms) SAVEPOINT active_record_1
14438
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:49.645318"], ["created_at", "2019-11-22 20:25:49.645318"]]
14439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14440
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
14441
+  (0.1ms) SAVEPOINT active_record_1
14442
+ Spree::State Create (0.1ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:49.668431"], ["created_at", "2019-11-22 20:25:49.668431"]]
14443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14444
+  (0.1ms) SAVEPOINT active_record_1
14445
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
14446
+ Spree::StockLocation Create (0.5ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:49.670194"], ["updated_at", "2019-11-22 20:25:49.670194"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
14447
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
14448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14449
+  (0.1ms) SAVEPOINT active_record_1
14450
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-1-4234"], ["LIMIT", 1]]
14451
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-1-4234' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14452
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14453
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-2"], ["LIMIT", 1]]
14454
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14455
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-2"], ["LIMIT", 1]]
14456
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-1-4234"], ["LIMIT", 1]]
14457
+ Spree::Product Create (0.2ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #1 - 4234"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:48.695290"], ["slug", "product-1-4234"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:49.819022"], ["updated_at", "2019-11-22 20:25:49.819022"]]
14458
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14459
+ Spree::Variant Create (0.2ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-2"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:49.820479"], ["created_at", "2019-11-22 20:25:49.820479"]]
14460
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:49.823114"], ["updated_at", "2019-11-22 20:25:49.823114"]]
14461
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14462
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
14463
+ Spree::StockItem Create (0.2ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:49.841217"], ["updated_at", "2019-11-22 20:25:49.841217"], ["backorderable", 1]]
14464
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:49.842520"], ["id", 1]]
14465
+  (0.2ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14466
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
14467
+  (0.2ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14468
+  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14469
+ FriendlyId::Slug Load (0.3ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14470
+ FriendlyId::Slug Destroy (0.3ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-1-4234"]]
14471
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14472
+ FriendlyId::Slug Create (0.2ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-1-4234"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:49.891628"], ["updated_at", "2019-11-22 20:25:49.891628"]]
14473
+ Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14474
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:49.824187"], ["id", 1]]
14475
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:49.895029"], ["id", 1]]
14476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14477
+  (0.2ms) SAVEPOINT active_record_1
14478
+ Spree::OptionType Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_types" WHERE "spree_option_types"."name" = ? LIMIT ? [["name", "foo-size-1"], ["LIMIT", 1]]
14479
+ Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE (1 = 1) AND ("spree_option_types"."position" IS NOT NULL) ORDER BY "spree_option_types"."position" DESC LIMIT ? [["LIMIT", 1]]
14480
+ Spree::OptionType Create (0.2ms) INSERT INTO "spree_option_types" ("name", "presentation", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "foo-size-1"], ["presentation", "Size"], ["position", 1], ["created_at", "2019-11-22 20:25:49.949873"], ["updated_at", "2019-11-22 20:25:49.949873"]]
14481
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_product_option_types" ON "spree_products"."id" = "spree_product_option_types"."product_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_product_option_types"."option_type_id" = ? ORDER BY "spree_products"."id" ASC LIMIT ? [["option_type_id", 1], ["LIMIT", 1000]]
14482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14483
+  (0.0ms) SAVEPOINT active_record_1
14484
+ Spree::OptionValue Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-1"], ["option_type_id", 1], ["LIMIT", 1]]
14485
+ Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = ? AND ("spree_option_values"."position" IS NOT NULL) ORDER BY "spree_option_values"."position" DESC LIMIT ? [["option_type_id", 1], ["LIMIT", 1]]
14486
+ Spree::OptionValue Create (0.2ms) INSERT INTO "spree_option_values" ("position", "name", "presentation", "option_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["position", 1], ["name", "Size-1"], ["presentation", "S"], ["option_type_id", 1], ["created_at", "2019-11-22 20:25:49.960182"], ["updated_at", "2019-11-22 20:25:49.960182"]]
14487
+ Spree::OptionValue Update (0.1ms) UPDATE "spree_option_values" SET "updated_at" = ? WHERE "spree_option_values"."id" = ? [["updated_at", "2019-11-22 20:25:49.962298"], ["id", 1]]
14488
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" INNER JOIN "spree_option_values_variants" ON "spree_variants"."id" = "spree_option_values_variants"."variant_id" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_option_values_variants"."option_value_id" = ? ORDER BY "spree_variants"."id" ASC LIMIT ? [["option_value_id", 1], ["LIMIT", 1000]]
14489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14490
+  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations"
14491
+  (0.1ms) SAVEPOINT active_record_1
14492
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14493
+ Spree::OptionValue Exists? (0.2ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."id" != ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-1"], ["id", 1], ["option_type_id", 1], ["LIMIT", 1]]
14494
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-1"], ["LIMIT", 1]]
14495
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14496
+ Spree::Variant Create (0.2ms) INSERT INTO "spree_variants" ("sku", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-1"], ["product_id", 1], ["cost_price", 17.0], ["position", 2], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:49.983988"], ["created_at", "2019-11-22 20:25:49.983988"]]
14497
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 2], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:49.986819"], ["updated_at", "2019-11-22 20:25:49.986819"]]
14498
+ Spree::OptionValuesVariant Create (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["variant_id", 2], ["option_value_id", 1], ["created_at", "2019-11-22 20:25:49.988754"], ["updated_at", "2019-11-22 20:25:49.988754"]]
14499
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14500
+ Spree::StockItem Exists? (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 2], ["stock_location_id", 1], ["LIMIT", 1]]
14501
+ Spree::StockItem Create (0.1ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 2], ["created_at", "2019-11-22 20:25:49.992607"], ["updated_at", "2019-11-22 20:25:49.992607"], ["backorderable", 1]]
14502
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:49.993590"], ["id", 2]]
14503
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14504
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 3], ["id", 2]]
14505
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14506
+  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 2], ["active", 1]]
14507
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:49.987889"], ["id", 2]]
14508
+ Spree::Product Update (0.5ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.003682"], ["id", 1]]
14509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14510
+  (0.2ms) SAVEPOINT active_record_1
14511
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" != ? LIMIT ? [["sku", "SKU-1"], ["id", 2], ["LIMIT", 1]]
14512
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.005885"], ["id", 2]]
14513
+ Spree::Product Update (0.3ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.010660"], ["id", 1]]
14514
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14515
+  (0.9ms) rollback transaction
14516
+  (0.1ms) begin transaction
14517
+ Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14518
+  (0.1ms) SAVEPOINT active_record_1
14519
+ Spree::ShippingCategory Create (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #2"], ["created_at", "2019-11-22 20:25:50.024912"], ["updated_at", "2019-11-22 20:25:50.024912"]]
14520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14521
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14522
+  (0.1ms) SAVEPOINT active_record_1
14523
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 925107"], ["LIMIT", 1]]
14524
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 925107"], ["created_at", "2019-11-22 20:25:50.029147"], ["updated_at", "2019-11-22 20:25:50.029147"], ["tax_code", "TaxCode - 798724"]]
14525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14526
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14527
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
14528
+  (0.1ms) SAVEPOINT active_record_1
14529
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:50.032691"], ["created_at", "2019-11-22 20:25:50.032691"]]
14530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14531
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
14532
+  (0.1ms) SAVEPOINT active_record_1
14533
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:50.037306"], ["created_at", "2019-11-22 20:25:50.037306"]]
14534
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14535
+  (0.1ms) SAVEPOINT active_record_1
14536
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
14537
+ Spree::StockLocation Create (0.2ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:50.039694"], ["updated_at", "2019-11-22 20:25:50.039694"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
14538
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
14539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14540
+  (0.1ms) SAVEPOINT active_record_1
14541
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-2-6589"], ["LIMIT", 1]]
14542
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-2-6589' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14543
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14544
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-4"], ["LIMIT", 1]]
14545
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14546
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-4"], ["LIMIT", 1]]
14547
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-2-6589"], ["LIMIT", 1]]
14548
+ Spree::Product Create (0.4ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #2 - 6589"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:50.023003"], ["slug", "product-2-6589"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:50.052407"], ["updated_at", "2019-11-22 20:25:50.052407"]]
14549
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14550
+ Spree::Variant Create (0.4ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-4"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:50.054205"], ["created_at", "2019-11-22 20:25:50.054205"]]
14551
+ Spree::Price Create (0.3ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:50.057738"], ["updated_at", "2019-11-22 20:25:50.057738"]]
14552
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14553
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
14554
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:50.064519"], ["updated_at", "2019-11-22 20:25:50.064519"], ["backorderable", 1]]
14555
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.065689"], ["id", 1]]
14556
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14557
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
14558
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14559
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14560
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14561
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-2-6589"]]
14562
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14563
+ FriendlyId::Slug Create (0.4ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-2-6589"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:50.076256"], ["updated_at", "2019-11-22 20:25:50.076256"]]
14564
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14565
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.059440"], ["id", 1]]
14566
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.079215"], ["id", 1]]
14567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14568
+  (0.1ms) SAVEPOINT active_record_1
14569
+ Spree::OptionType Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_types" WHERE "spree_option_types"."name" = ? LIMIT ? [["name", "foo-size-2"], ["LIMIT", 1]]
14570
+ Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE (1 = 1) AND ("spree_option_types"."position" IS NOT NULL) ORDER BY "spree_option_types"."position" DESC LIMIT ? [["LIMIT", 1]]
14571
+ Spree::OptionType Create (0.2ms) INSERT INTO "spree_option_types" ("name", "presentation", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "foo-size-2"], ["presentation", "Size"], ["position", 1], ["created_at", "2019-11-22 20:25:50.082358"], ["updated_at", "2019-11-22 20:25:50.082358"]]
14572
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_product_option_types" ON "spree_products"."id" = "spree_product_option_types"."product_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_product_option_types"."option_type_id" = ? ORDER BY "spree_products"."id" ASC LIMIT ? [["option_type_id", 1], ["LIMIT", 1000]]
14573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14574
+  (0.1ms) SAVEPOINT active_record_1
14575
+ Spree::OptionValue Exists? (0.2ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-2"], ["option_type_id", 1], ["LIMIT", 1]]
14576
+ Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = ? AND ("spree_option_values"."position" IS NOT NULL) ORDER BY "spree_option_values"."position" DESC LIMIT ? [["option_type_id", 1], ["LIMIT", 1]]
14577
+ Spree::OptionValue Create (0.4ms) INSERT INTO "spree_option_values" ("position", "name", "presentation", "option_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["position", 1], ["name", "Size-2"], ["presentation", "S"], ["option_type_id", 1], ["created_at", "2019-11-22 20:25:50.088860"], ["updated_at", "2019-11-22 20:25:50.088860"]]
14578
+ Spree::OptionValue Update (0.1ms) UPDATE "spree_option_values" SET "updated_at" = ? WHERE "spree_option_values"."id" = ? [["updated_at", "2019-11-22 20:25:50.091756"], ["id", 1]]
14579
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" INNER JOIN "spree_option_values_variants" ON "spree_variants"."id" = "spree_option_values_variants"."variant_id" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_option_values_variants"."option_value_id" = ? ORDER BY "spree_variants"."id" ASC LIMIT ? [["option_value_id", 1], ["LIMIT", 1000]]
14580
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14581
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14582
+  (0.2ms) SAVEPOINT active_record_1
14583
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14584
+ Spree::OptionValue Exists? (0.3ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."id" != ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-2"], ["id", 1], ["option_type_id", 1], ["LIMIT", 1]]
14585
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-3"], ["LIMIT", 1]]
14586
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14587
+ Spree::Variant Create (0.1ms) INSERT INTO "spree_variants" ("sku", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-3"], ["product_id", 1], ["cost_price", 17.0], ["position", 2], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:50.104461"], ["created_at", "2019-11-22 20:25:50.104461"]]
14588
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 2], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:50.106982"], ["updated_at", "2019-11-22 20:25:50.106982"]]
14589
+ Spree::OptionValuesVariant Create (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["variant_id", 2], ["option_value_id", 1], ["created_at", "2019-11-22 20:25:50.108587"], ["updated_at", "2019-11-22 20:25:50.108587"]]
14590
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14591
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 2], ["stock_location_id", 1], ["LIMIT", 1]]
14592
+ Spree::StockItem Create (0.1ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 2], ["created_at", "2019-11-22 20:25:50.112493"], ["updated_at", "2019-11-22 20:25:50.112493"], ["backorderable", 1]]
14593
+ Spree::Variant Update (0.3ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.113620"], ["id", 2]]
14594
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14595
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 3], ["id", 2]]
14596
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14597
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 2], ["active", 1]]
14598
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.107827"], ["id", 2]]
14599
+ Spree::Product Update (0.4ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.123187"], ["id", 1]]
14600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14601
+  (0.1ms) SAVEPOINT active_record_1
14602
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14603
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14604
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("product_id", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["product_id", 1], ["position", 4], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:50.129396"], ["created_at", "2019-11-22 20:25:50.129396"]]
14605
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 3], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:50.132256"], ["updated_at", "2019-11-22 20:25:50.132256"]]
14606
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14607
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 3], ["stock_location_id", 1], ["LIMIT", 1]]
14608
+ Spree::StockItem Create (0.4ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 3], ["created_at", "2019-11-22 20:25:50.136853"], ["updated_at", "2019-11-22 20:25:50.136853"], ["backorderable", 1]]
14609
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.138321"], ["id", 3]]
14610
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14611
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 5], ["id", 3]]
14612
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.133304"], ["id", 3]]
14613
+ Spree::Product Update (0.3ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.143883"], ["id", 1]]
14614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14615
+  (0.5ms) rollback transaction
14616
+  (0.2ms) begin transaction
14617
+ Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14618
+  (0.1ms) SAVEPOINT active_record_1
14619
+ Spree::ShippingCategory Create (0.4ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #3"], ["created_at", "2019-11-22 20:25:50.156288"], ["updated_at", "2019-11-22 20:25:50.156288"]]
14620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14621
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14622
+  (0.1ms) SAVEPOINT active_record_1
14623
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 980287"], ["LIMIT", 1]]
14624
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 980287"], ["created_at", "2019-11-22 20:25:50.160434"], ["updated_at", "2019-11-22 20:25:50.160434"], ["tax_code", "TaxCode - 538194"]]
14625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14626
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14627
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
14628
+  (0.1ms) SAVEPOINT active_record_1
14629
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:50.164528"], ["created_at", "2019-11-22 20:25:50.164528"]]
14630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14631
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
14632
+  (0.1ms) SAVEPOINT active_record_1
14633
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:50.169146"], ["created_at", "2019-11-22 20:25:50.169146"]]
14634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14635
+  (0.2ms) SAVEPOINT active_record_1
14636
+ Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
14637
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:50.171410"], ["updated_at", "2019-11-22 20:25:50.171410"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
14638
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
14639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14640
+  (0.1ms) SAVEPOINT active_record_1
14641
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-3-5692"], ["LIMIT", 1]]
14642
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-3-5692' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14643
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14644
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-6"], ["LIMIT", 1]]
14645
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14646
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-6"], ["LIMIT", 1]]
14647
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-3-5692"], ["LIMIT", 1]]
14648
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #3 - 5692"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:50.153389"], ["slug", "product-3-5692"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:50.188596"], ["updated_at", "2019-11-22 20:25:50.188596"]]
14649
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14650
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-6"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:50.190328"], ["created_at", "2019-11-22 20:25:50.190328"]]
14651
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:50.192636"], ["updated_at", "2019-11-22 20:25:50.192636"]]
14652
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14653
+ Spree::StockItem Exists? (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
14654
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:50.197221"], ["updated_at", "2019-11-22 20:25:50.197221"], ["backorderable", 1]]
14655
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.198369"], ["id", 1]]
14656
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14657
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
14658
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14659
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14660
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14661
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-3-5692"]]
14662
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14663
+ FriendlyId::Slug Create (0.4ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-3-5692"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:50.209656"], ["updated_at", "2019-11-22 20:25:50.209656"]]
14664
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14665
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.193757"], ["id", 1]]
14666
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.212549"], ["id", 1]]
14667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14668
+  (0.1ms) SAVEPOINT active_record_1
14669
+ Spree::OptionType Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_types" WHERE "spree_option_types"."name" = ? LIMIT ? [["name", "foo-size-3"], ["LIMIT", 1]]
14670
+ Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE (1 = 1) AND ("spree_option_types"."position" IS NOT NULL) ORDER BY "spree_option_types"."position" DESC LIMIT ? [["LIMIT", 1]]
14671
+ Spree::OptionType Create (0.2ms) INSERT INTO "spree_option_types" ("name", "presentation", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "foo-size-3"], ["presentation", "Size"], ["position", 1], ["created_at", "2019-11-22 20:25:50.215786"], ["updated_at", "2019-11-22 20:25:50.215786"]]
14672
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_product_option_types" ON "spree_products"."id" = "spree_product_option_types"."product_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_product_option_types"."option_type_id" = ? ORDER BY "spree_products"."id" ASC LIMIT ? [["option_type_id", 1], ["LIMIT", 1000]]
14673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14674
+  (0.1ms) SAVEPOINT active_record_1
14675
+ Spree::OptionValue Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-3"], ["option_type_id", 1], ["LIMIT", 1]]
14676
+ Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = ? AND ("spree_option_values"."position" IS NOT NULL) ORDER BY "spree_option_values"."position" DESC LIMIT ? [["option_type_id", 1], ["LIMIT", 1]]
14677
+ Spree::OptionValue Create (0.2ms) INSERT INTO "spree_option_values" ("position", "name", "presentation", "option_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["position", 1], ["name", "Size-3"], ["presentation", "S"], ["option_type_id", 1], ["created_at", "2019-11-22 20:25:50.220298"], ["updated_at", "2019-11-22 20:25:50.220298"]]
14678
+ Spree::OptionValue Update (0.1ms) UPDATE "spree_option_values" SET "updated_at" = ? WHERE "spree_option_values"."id" = ? [["updated_at", "2019-11-22 20:25:50.222316"], ["id", 1]]
14679
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" INNER JOIN "spree_option_values_variants" ON "spree_variants"."id" = "spree_option_values_variants"."variant_id" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_option_values_variants"."option_value_id" = ? ORDER BY "spree_variants"."id" ASC LIMIT ? [["option_value_id", 1], ["LIMIT", 1000]]
14680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14681
+  (0.3ms) SELECT COUNT(*) FROM "spree_stock_locations"
14682
+  (0.1ms) SAVEPOINT active_record_1
14683
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14684
+ Spree::OptionValue Exists? (0.1ms) SELECT 1 AS one FROM "spree_option_values" WHERE "spree_option_values"."name" = ? AND "spree_option_values"."id" != ? AND "spree_option_values"."option_type_id" = ? LIMIT ? [["name", "Size-3"], ["id", 1], ["option_type_id", 1], ["LIMIT", 1]]
14685
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-5"], ["LIMIT", 1]]
14686
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14687
+ Spree::Variant Create (0.2ms) INSERT INTO "spree_variants" ("sku", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-5"], ["product_id", 1], ["cost_price", 17.0], ["position", 2], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:50.232294"], ["created_at", "2019-11-22 20:25:50.232294"]]
14688
+ Spree::Price Create (0.1ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 2], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:50.234776"], ["updated_at", "2019-11-22 20:25:50.234776"]]
14689
+ Spree::OptionValuesVariant Create (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["variant_id", 2], ["option_value_id", 1], ["created_at", "2019-11-22 20:25:50.236617"], ["updated_at", "2019-11-22 20:25:50.236617"]]
14690
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14691
+ Spree::StockItem Exists? (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 2], ["stock_location_id", 1], ["LIMIT", 1]]
14692
+ Spree::StockItem Create (0.2ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 2], ["created_at", "2019-11-22 20:25:50.241118"], ["updated_at", "2019-11-22 20:25:50.241118"], ["backorderable", 1]]
14693
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.242182"], ["id", 2]]
14694
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14695
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 3], ["id", 2]]
14696
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14697
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 2], ["active", 1]]
14698
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.235706"], ["id", 2]]
14699
+ Spree::Product Update (0.6ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.250630"], ["id", 1]]
14700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14701
+  (0.1ms) SAVEPOINT active_record_1
14702
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
14703
+ Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = ? AND "spree_prices"."country_iso" IS NULL ORDER BY country_iso IS NULL, "spree_prices"."updated_at" DESC, "spree_prices"."id" DESC LIMIT ? [["variant_id", 2], ["currency", "USD"], ["LIMIT", 1]]
14704
+ Spree::Price Update (0.2ms) UPDATE "spree_prices" SET "deleted_at" = ?, "updated_at" = ? WHERE "spree_prices"."id" = ? [["deleted_at", "2019-11-22 20:25:50.256558"], ["updated_at", "2019-11-22 20:25:50.256571"], ["id", 2]]
14705
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14706
+ Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? [["variant_id", 2]]
14707
+ Spree::StockItem Update (0.2ms) UPDATE "spree_stock_items" SET "deleted_at" = ?, "updated_at" = ? WHERE "spree_stock_items"."id" = ? [["deleted_at", "2019-11-22 20:25:50.262397"], ["updated_at", "2019-11-22 20:25:50.262410"], ["id", 2]]
14708
+ Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" = ? AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["type", "Spree::Image"], ["viewable_id", 2], ["viewable_type", "Spree::Variant"]]
14709
+ Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 2]]
14710
+ Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? ORDER BY country_iso IS NULL, "spree_prices"."updated_at" DESC, "spree_prices"."id" DESC [["variant_id", 2]]
14711
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "deleted_at" = ?, "updated_at" = ? WHERE "spree_variants"."id" = ? [["deleted_at", "2019-11-22 20:25:50.277545"], ["updated_at", "2019-11-22 20:25:50.277557"], ["id", 2]]
14712
+ Spree::Variant Update All (0.2ms) UPDATE "spree_variants" SET "position" = ("spree_variants"."position" - 1), "updated_at" = '2019-11-22 20:25:50.281780' WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" > 3) [["product_id", 1]]
14713
+ Spree::Variant Update (0.4ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.257679"], ["id", 2]]
14714
+ Spree::Product Update (0.2ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.285129"], ["id", 1]]
14715
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14717
+  (1.1ms) rollback transaction
14718
+  (0.1ms) begin transaction
14719
+  (0.1ms) SAVEPOINT active_record_1
14720
+ Spree::User Exists? (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email1@example.com"], ["LIMIT", 1]]
14721
+ Spree::User Create (0.4ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "40c13bad3c32b42485735345d27c1f753699f1d755e3652c2857932f042548704c525840af92e095950d171de7ff9ea60ddd38687d66a5f645501f2784866045"], ["password_salt", "UGpsibUjBGw3SDpmfSxx"], ["email", "email1@example.com"], ["login", "email1@example.com"], ["created_at", "2019-11-22 20:25:50.371775"], ["updated_at", "2019-11-22 20:25:50.371775"]]
14722
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
14723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14724
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
14725
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
14726
+  (0.1ms) SAVEPOINT active_record_1
14727
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:50.407223"], ["created_at", "2019-11-22 20:25:50.407223"]]
14728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14729
+  (0.1ms) SAVEPOINT active_record_1
14730
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:50.409012"], ["created_at", "2019-11-22 20:25:50.409012"]]
14731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14732
+  (0.1ms) SAVEPOINT active_record_1
14733
+ Spree::Address Create (0.3ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10001"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:50.410850"], ["updated_at", "2019-11-22 20:25:50.410850"]]
14734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14735
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
14736
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14737
+  (0.1ms) SAVEPOINT active_record_1
14738
+ Spree::Address Create (0.1ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10002"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:50.416356"], ["updated_at", "2019-11-22 20:25:50.416356"]]
14739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14740
+  (0.1ms) SAVEPOINT active_record_1
14741
+ Spree::Store Exists? (0.1ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_1"], ["LIMIT", 1]]
14742
+  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
14743
+ Spree::Store Create (0.2ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 1"], ["url", "www.example1.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_1"], ["default", 1], ["created_at", "2019-11-22 20:25:50.440944"], ["updated_at", "2019-11-22 20:25:50.440944"]]
14744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14745
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
14746
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
14747
+  (0.1ms) SAVEPOINT active_record_1
14748
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
14749
+ Spree::StockLocation Create (0.2ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:50.444961"], ["updated_at", "2019-11-22 20:25:50.444961"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
14750
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
14751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14752
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14753
+  (0.1ms) SAVEPOINT active_record_1
14754
+ Spree::ShippingCategory Create (0.2ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #4"], ["created_at", "2019-11-22 20:25:50.476729"], ["updated_at", "2019-11-22 20:25:50.476729"]]
14755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14756
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14757
+  (0.1ms) SAVEPOINT active_record_1
14758
+ Spree::TaxCategory Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 88607"], ["LIMIT", 1]]
14759
+ Spree::TaxCategory Create (0.2ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 88607"], ["created_at", "2019-11-22 20:25:50.480904"], ["updated_at", "2019-11-22 20:25:50.480904"], ["tax_code", "TaxCode - 226107"]]
14760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14761
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
14762
+  (0.1ms) SAVEPOINT active_record_1
14763
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-4-3575"], ["LIMIT", 1]]
14764
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-4-3575' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14765
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14766
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-7"], ["LIMIT", 1]]
14767
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14768
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-7"], ["LIMIT", 1]]
14769
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-4-3575"], ["LIMIT", 1]]
14770
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #4 - 3575"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:50.475407"], ["slug", "product-4-3575"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:50.491957"], ["updated_at", "2019-11-22 20:25:50.491957"]]
14771
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14772
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-7"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:50.493359"], ["created_at", "2019-11-22 20:25:50.493359"]]
14773
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:50.495724"], ["updated_at", "2019-11-22 20:25:50.495724"]]
14774
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14775
+ Spree::StockItem Exists? (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
14776
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:50.533380"], ["updated_at", "2019-11-22 20:25:50.533380"], ["backorderable", 1]]
14777
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.534809"], ["id", 1]]
14778
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14779
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
14780
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14781
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14782
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14783
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-4-3575"]]
14784
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14785
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-4-3575"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:50.545355"], ["updated_at", "2019-11-22 20:25:50.545355"]]
14786
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14787
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:50.496988"], ["id", 1]]
14788
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:50.547850"], ["id", 1]]
14789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14790
+  (0.1ms) SAVEPOINT active_record_1
14791
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R047033353"], ["LIMIT", 1]]
14792
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R047033353"], ["LIMIT", 1]]
14793
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "5-Rl-_PUJkKPHLPa5h7lrg"], ["LIMIT", 1]]
14794
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "payment_state", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R047033353"], ["state", "confirm"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["payment_state", "checkout"], ["email", "email1@example.com"], ["created_at", "2019-11-22 20:25:50.560546"], ["updated_at", "2019-11-22 20:25:50.560546"], ["currency", "USD"], ["guest_token", "5-Rl-_PUJkKPHLPa5h7lrg"], ["store_id", 1]]
14795
+ Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
14796
+ Spree::LineItem Create (0.3ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:25:50.566021"], ["updated_at", "2019-11-22 20:25:50.566021"], ["cost_price", 17.0], ["tax_category_id", 1]]
14797
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:50.567624"], ["id", 1]]
14798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14799
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
14800
+  (0.1ms) SAVEPOINT active_record_1
14801
+ Spree::Shipment Exists? (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H80772707728"], ["LIMIT", 1]]
14802
+ Spree::Shipment Create (0.3ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H80772707728"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:25:50.606584"], ["updated_at", "2019-11-22 20:25:50.606584"], ["stock_location_id", 1]]
14803
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:50.607977"], ["id", 1]]
14804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14805
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
14806
+ Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries"
14807
+  (0.1ms) SAVEPOINT active_record_1
14808
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
14809
+ Spree::Zone Create (0.2ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:25:50.665840"], ["updated_at", "2019-11-22 20:25:50.665840"]]
14810
+ Spree::ZoneMember Create (0.3ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:50.668071"], ["updated_at", "2019-11-22 20:25:50.668071"]]
14811
+ Spree::Zone Update All (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
14812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14813
+  (0.1ms) SAVEPOINT active_record_1
14814
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
14815
+ Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
14816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14817
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14818
+  (0.1ms) SAVEPOINT active_record_1
14819
+ Spree::Zone Exists? (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
14820
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:25:50.728989"], ["updated_at", "2019-11-22 20:25:50.728989"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
14821
+ Spree::Calculator::Shipping::FlatRate Create (0.3ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:25:50.730713"], ["updated_at", "2019-11-22 20:25:50.730713"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
14822
+ Spree::ShippingMethodCategory Create (0.3ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:50.732922"], ["updated_at", "2019-11-22 20:25:50.732922"]]
14823
+ Spree::ShippingMethodZone Create (0.2ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:50.734809"], ["updated_at", "2019-11-22 20:25:50.734809"]]
14824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14825
+  (0.2ms) SAVEPOINT active_record_1
14826
+ Spree::ShippingRate Create (0.3ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:25:50.751136"], ["updated_at", "2019-11-22 20:25:50.751136"]]
14827
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:50.753069"], ["id", 1]]
14828
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:50.754844"], ["id", 1]]
14829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14830
+  (0.1ms) SAVEPOINT active_record_1
14831
+ Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14832
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14833
+ Spree::InventoryUnit Create (0.3ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:25:50.780499"], ["updated_at", "2019-11-22 20:25:50.780499"], ["line_item_id", 1]]
14834
+ Spree::Shipment Update (0.3ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:50.781811"], ["id", 1]]
14835
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:50.783316"], ["id", 1]]
14836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14837
+ Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
14838
+  (0.1ms) SAVEPOINT active_record_1
14839
+ Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
14840
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
14841
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
14842
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
14843
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
14844
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
14845
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14846
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14847
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14848
+  (0.0ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14849
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:25:50.825945"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
14850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14851
+  (0.1ms) SAVEPOINT active_record_1
14852
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R047033353"], ["id", 1], ["LIMIT", 1]]
14853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14854
+  (0.1ms) SAVEPOINT active_record_1
14855
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
14856
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:50.872409"], ["updated_at", "2019-11-22 20:25:50.872409"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
14857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14858
+  (0.2ms) SAVEPOINT active_record_1
14859
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
14860
+ Spree::PaymentMethod::BogusCreditCard Create (0.1ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:50.899072"], ["updated_at", "2019-11-22 20:25:50.899072"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
14861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14862
+  (0.1ms) SAVEPOINT active_record_1
14863
+ Spree::CreditCard Create (0.2ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:25:50.904590"], ["updated_at", "2019-11-22 20:25:50.904590"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
14864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14865
+  (0.1ms) SAVEPOINT active_record_1
14866
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "CP2V9SNC"], ["LIMIT", 1]]
14867
+ Spree::Payment Create (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2019-11-22 20:25:50.958510"], ["updated_at", "2019-11-22 20:25:50.958510"], ["number", "CP2V9SNC"]]
14868
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
14869
+ Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-001134"], ["LIMIT", 1]]
14870
+ Spree::CreditCard Update (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-001134"], ["updated_at", "2019-11-22 20:25:50.968024"], ["id", 1]]
14871
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:50.961084"], ["id", 1]]
14872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14873
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
14874
+  (0.1ms) SAVEPOINT active_record_1
14875
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
14876
+ Spree::TaxRate Load (0.4ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
14877
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14878
+  (1.1ms) rollback transaction
14879
+  (0.1ms) begin transaction
14880
+  (0.1ms) SAVEPOINT active_record_1
14881
+ Spree::User Exists? (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email2@example.com"], ["LIMIT", 1]]
14882
+ Spree::User Create (0.6ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "90af31fc009184e2bf717df8506335a2883c252772a18c508aabb31d239849fe143d6e319930583bb242aadf08b687cbe0209d91891444bc2e364f087d2b1177"], ["password_salt", "6imhKJhKsQKPhJDPAnVQ"], ["email", "email2@example.com"], ["login", "email2@example.com"], ["created_at", "2019-11-22 20:25:50.986951"], ["updated_at", "2019-11-22 20:25:50.986951"]]
14883
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
14884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14885
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
14886
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
14887
+  (0.1ms) SAVEPOINT active_record_1
14888
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:50.993261"], ["created_at", "2019-11-22 20:25:50.993261"]]
14889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14890
+  (0.1ms) SAVEPOINT active_record_1
14891
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:50.995415"], ["created_at", "2019-11-22 20:25:50.995415"]]
14892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14893
+  (0.1ms) SAVEPOINT active_record_1
14894
+ Spree::Address Create (0.3ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10003"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:50.997228"], ["updated_at", "2019-11-22 20:25:50.997228"]]
14895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14896
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
14897
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14898
+  (0.1ms) SAVEPOINT active_record_1
14899
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10004"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.002081"], ["updated_at", "2019-11-22 20:25:51.002081"]]
14900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14901
+  (0.1ms) SAVEPOINT active_record_1
14902
+ Spree::Store Exists? (0.1ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_2"], ["LIMIT", 1]]
14903
+  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
14904
+ Spree::Store Create (0.2ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 2"], ["url", "www.example2.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_2"], ["default", 1], ["created_at", "2019-11-22 20:25:51.007259"], ["updated_at", "2019-11-22 20:25:51.007259"]]
14905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14906
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
14907
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
14908
+  (0.1ms) SAVEPOINT active_record_1
14909
+ Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
14910
+ Spree::StockLocation Create (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:51.011794"], ["updated_at", "2019-11-22 20:25:51.011794"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
14911
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
14912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14913
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14914
+  (0.1ms) SAVEPOINT active_record_1
14915
+ Spree::ShippingCategory Create (0.2ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #5"], ["created_at", "2019-11-22 20:25:51.023935"], ["updated_at", "2019-11-22 20:25:51.023935"]]
14916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14917
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14918
+  (0.1ms) SAVEPOINT active_record_1
14919
+ Spree::TaxCategory Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 489081"], ["LIMIT", 1]]
14920
+ Spree::TaxCategory Create (0.4ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 489081"], ["created_at", "2019-11-22 20:25:51.029286"], ["updated_at", "2019-11-22 20:25:51.029286"], ["tax_code", "TaxCode - 693761"]]
14921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14922
+  (0.3ms) SELECT COUNT(*) FROM "spree_stock_locations"
14923
+  (0.1ms) SAVEPOINT active_record_1
14924
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-5-5438"], ["LIMIT", 1]]
14925
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-5-5438' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14926
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14927
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-8"], ["LIMIT", 1]]
14928
+ Spree::TaxRate Exists? (0.3ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
14929
+ Spree::Variant Exists? (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-8"], ["LIMIT", 1]]
14930
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-5-5438"], ["LIMIT", 1]]
14931
+ Spree::Product Create (0.4ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #5 - 5438"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:51.022408"], ["slug", "product-5-5438"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:51.048564"], ["updated_at", "2019-11-22 20:25:51.048564"]]
14932
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
14933
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-8"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:51.050603"], ["created_at", "2019-11-22 20:25:51.050603"]]
14934
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:51.053110"], ["updated_at", "2019-11-22 20:25:51.053110"]]
14935
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
14936
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
14937
+ Spree::StockItem Create (0.4ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:51.058855"], ["updated_at", "2019-11-22 20:25:51.058855"], ["backorderable", 1]]
14938
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.060250"], ["id", 1]]
14939
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
14940
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
14941
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14942
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
14943
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
14944
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-5-5438"]]
14945
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14946
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-5-5438"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:51.070574"], ["updated_at", "2019-11-22 20:25:51.070574"]]
14947
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
14948
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.054334"], ["id", 1]]
14949
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:51.072970"], ["id", 1]]
14950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14951
+  (0.1ms) SAVEPOINT active_record_1
14952
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R000738502"], ["LIMIT", 1]]
14953
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R000738502"], ["LIMIT", 1]]
14954
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "yMb-bzNLHEGo4BgiQftPgw"], ["LIMIT", 1]]
14955
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "payment_state", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R000738502"], ["state", "confirm"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["payment_state", "checkout"], ["email", "email2@example.com"], ["created_at", "2019-11-22 20:25:51.077372"], ["updated_at", "2019-11-22 20:25:51.077372"], ["currency", "USD"], ["guest_token", "yMb-bzNLHEGo4BgiQftPgw"], ["store_id", 1]]
14956
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
14957
+ Spree::LineItem Create (0.3ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:25:51.082645"], ["updated_at", "2019-11-22 20:25:51.082645"], ["cost_price", 17.0], ["tax_category_id", 1]]
14958
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.084735"], ["id", 1]]
14959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14960
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
14961
+  (0.1ms) SAVEPOINT active_record_1
14962
+ Spree::Shipment Exists? (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H51160261626"], ["LIMIT", 1]]
14963
+ Spree::Shipment Create (0.5ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H51160261626"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:25:51.089827"], ["updated_at", "2019-11-22 20:25:51.089827"], ["stock_location_id", 1]]
14964
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.092082"], ["id", 1]]
14965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14966
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
14967
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"
14968
+  (0.1ms) SAVEPOINT active_record_1
14969
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
14970
+ Spree::Zone Create (0.2ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:25:51.097846"], ["updated_at", "2019-11-22 20:25:51.097846"]]
14971
+ Spree::ZoneMember Create (0.2ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:51.099098"], ["updated_at", "2019-11-22 20:25:51.099098"]]
14972
+ Spree::Zone Update All (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
14973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14974
+  (0.1ms) SAVEPOINT active_record_1
14975
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
14976
+ Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
14977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14978
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
14979
+  (0.1ms) SAVEPOINT active_record_1
14980
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
14981
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:25:51.111457"], ["updated_at", "2019-11-22 20:25:51.111457"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
14982
+ Spree::Calculator::Shipping::FlatRate Create (0.2ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:25:51.112697"], ["updated_at", "2019-11-22 20:25:51.112697"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
14983
+ Spree::ShippingMethodCategory Create (0.2ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:51.114161"], ["updated_at", "2019-11-22 20:25:51.114161"]]
14984
+ Spree::ShippingMethodZone Create (0.3ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:51.115305"], ["updated_at", "2019-11-22 20:25:51.115305"]]
14985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14986
+  (0.1ms) SAVEPOINT active_record_1
14987
+ Spree::ShippingRate Create (0.2ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:25:51.118209"], ["updated_at", "2019-11-22 20:25:51.118209"]]
14988
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.119469"], ["id", 1]]
14989
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.120449"], ["id", 1]]
14990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14991
+  (0.1ms) SAVEPOINT active_record_1
14992
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14993
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
14994
+ Spree::InventoryUnit Create (0.3ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:25:51.125265"], ["updated_at", "2019-11-22 20:25:51.125265"], ["line_item_id", 1]]
14995
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.126532"], ["id", 1]]
14996
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.127816"], ["id", 1]]
14997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14998
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
14999
+  (0.1ms) SAVEPOINT active_record_1
15000
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
15001
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15002
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
15003
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
15004
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
15005
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15006
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15007
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15008
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15009
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15010
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:25:51.143754"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
15011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15012
+  (0.1ms) SAVEPOINT active_record_1
15013
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R000738502"], ["id", 1], ["LIMIT", 1]]
15014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15015
+  (0.1ms) SAVEPOINT active_record_1
15016
+ Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
15017
+ Spree::PaymentMethod::BogusCreditCard Create (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:51.151231"], ["updated_at", "2019-11-22 20:25:51.151231"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
15018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15019
+  (0.1ms) SAVEPOINT active_record_1
15020
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
15021
+ Spree::PaymentMethod::BogusCreditCard Create (0.1ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:51.157062"], ["updated_at", "2019-11-22 20:25:51.157062"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
15022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15023
+  (0.1ms) SAVEPOINT active_record_1
15024
+ Spree::CreditCard Create (0.2ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:25:51.161049"], ["updated_at", "2019-11-22 20:25:51.161049"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
15025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15026
+  (0.1ms) SAVEPOINT active_record_1
15027
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "56K2GD33"], ["LIMIT", 1]]
15028
+ Spree::Payment Create (0.6ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2019-11-22 20:25:51.164602"], ["updated_at", "2019-11-22 20:25:51.164602"], ["number", "56K2GD33"]]
15029
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
15030
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-153120"], ["LIMIT", 1]]
15031
+ Spree::CreditCard Update (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-153120"], ["updated_at", "2019-11-22 20:25:51.170416"], ["id", 1]]
15032
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.167555"], ["id", 1]]
15033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15034
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
15035
+ Spree::InventoryUnit Exists? (0.2ms) SELECT 1 AS one FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? LIMIT ? [["line_item_id", 1], ["LIMIT", 1]]
15036
+  (0.2ms) SELECT COUNT(*) AS count_all, "stock_location_id" AS stock_location_id FROM "spree_inventory_units" INNER JOIN "spree_shipments" ON "spree_shipments"."id" = "spree_inventory_units"."shipment_id" WHERE "spree_inventory_units"."line_item_id" = ? AND "spree_inventory_units"."pending" = ? GROUP BY "stock_location_id" [["line_item_id", 1], ["pending", 1]]
15037
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."stock_location_id" = ? [["variant_id", 1], ["stock_location_id", 1]]
15038
+ Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."stock_location_id" = ? [["variant_id", 1], ["stock_location_id", 1]]
15039
+ Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" = ? AND "spree_adjustments"."eligible" = ? AND "spree_adjustments"."source_type" = ? [["order_id", 1], ["eligible", 1], ["source_type", "Spree::PromotionAction"]]
15040
+  (0.2ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 1]]
15041
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
15042
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15043
+ Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15044
+  (0.1ms) SAVEPOINT active_record_1
15045
+ Spree::Payment Update (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = ? [["state", "processing"], ["updated_at", "2019-11-22 20:25:51.191225"], ["id", 1]]
15046
+ Spree::StateChange Create (0.3ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["next_state", "processing"], ["created_at", "2019-11-22 20:25:51.205426"], ["updated_at", "2019-11-22 20:25:51.205426"]]
15047
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.192479"], ["id", 1]]
15048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15049
+ Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15050
+ Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15051
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15052
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15053
+ Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
15054
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15055
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15056
+  (0.1ms) SAVEPOINT active_record_1
15057
+ Spree::LogEntry Create (0.2ms) INSERT INTO "spree_log_entries" ("source_type", "source_id", "details", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source_type", "Spree::Payment"], ["source_id", 1], ["details", "--- !ruby/object:ActiveMerchant::Billing::Response\nparams: {}\nmessage: 'Bogus Gateway: Forced success'\nsuccess: true\ntest: true\nauthorization: '12345'\nfraud_review: \nerror_code: \nemv_authorization: \navs_result:\n code: D\n message: Street address and postal code match.\n street_match: Y\n postal_match: Y\ncvv_result:\n code: \n message: \n"], ["created_at", "2019-11-22 20:25:51.223349"], ["updated_at", "2019-11-22 20:25:51.223349"]]
15058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15059
+  (0.1ms) SAVEPOINT active_record_1
15060
+ Spree::Payment Update (0.1ms) UPDATE "spree_payments" SET "state" = ?, "avs_response" = ?, "updated_at" = ? WHERE "spree_payments"."id" = ? [["state", "pending"], ["avs_response", "D"], ["updated_at", "2019-11-22 20:25:51.226541"], ["id", 1]]
15061
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "processing"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["next_state", "pending"], ["created_at", "2019-11-22 20:25:51.229711"], ["updated_at", "2019-11-22 20:25:51.229711"]]
15062
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.228103"], ["id", 1]]
15063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15064
+  (0.1ms) SAVEPOINT active_record_1
15065
+ Spree::Store Load (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15066
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R000738502"], ["id", 1], ["LIMIT", 1]]
15067
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ?, "state" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.234837"], ["state", "complete"], ["id", 1]]
15068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15069
+  (0.1ms) SAVEPOINT active_record_1
15070
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "order"], ["previous_state", "confirm"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "complete"], ["created_at", "2019-11-22 20:25:51.237529"], ["updated_at", "2019-11-22 20:25:51.237529"]]
15071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15072
+  (0.1ms) SAVEPOINT active_record_1
15073
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R000738502"], ["id", 1], ["LIMIT", 1]]
15074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15075
+ Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15076
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"]]
15077
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15078
+ Spree::WalletPaymentSource Load (0.2ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."payment_source_type" = ? AND "spree_wallet_payment_sources"."payment_source_id" = ? LIMIT ? [["user_id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["LIMIT", 1]]
15079
+  (0.1ms) SAVEPOINT active_record_1
15080
+ Spree::WalletPaymentSource Exists? (0.1ms) SELECT 1 AS one FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."payment_source_type" = ? AND "spree_wallet_payment_sources"."payment_source_id" = ? LIMIT ? [["user_id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["LIMIT", 1]]
15081
+ Spree::WalletPaymentSource Create (0.3ms) INSERT INTO "spree_wallet_payment_sources" ("user_id", "payment_source_type", "payment_source_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["user_id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["created_at", "2019-11-22 20:25:51.263260"], ["updated_at", "2019-11-22 20:25:51.263260"]]
15082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15083
+ Spree::WalletPaymentSource Load (0.1ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
15084
+ Spree::WalletPaymentSource Load (0.1ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."default" = ? LIMIT ? [["user_id", 1], ["default", 1], ["LIMIT", 1]]
15085
+  (0.1ms) SAVEPOINT active_record_1
15086
+ Spree::WalletPaymentSource Load (0.0ms) SELECT "spree_wallet_payment_sources".* FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."default" = ? LIMIT ? [["user_id", 1], ["default", 1], ["LIMIT", 1]]
15087
+ Spree::WalletPaymentSource Exists? (0.1ms) SELECT 1 AS one FROM "spree_wallet_payment_sources" WHERE "spree_wallet_payment_sources"."user_id" = ? AND "spree_wallet_payment_sources"."id" != ? AND "spree_wallet_payment_sources"."payment_source_type" = ? AND "spree_wallet_payment_sources"."payment_source_id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["payment_source_type", "Spree::CreditCard"], ["payment_source_id", 1], ["LIMIT", 1]]
15088
+ Spree::WalletPaymentSource Update (0.1ms) UPDATE "spree_wallet_payment_sources" SET "default" = ?, "updated_at" = ? WHERE "spree_wallet_payment_sources"."id" = ? [["default", 1], ["updated_at", "2019-11-22 20:25:51.267934"], ["id", 1]]
15089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15090
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" = ? [["order_id", 1]]
15091
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
15092
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
15093
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
15094
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
15095
+ Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
15096
+  (0.1ms) SAVEPOINT active_record_1
15097
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15098
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15099
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15100
+ Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = ? ORDER BY "spree_stock_items"."id" ASC LIMIT ? [["stock_location_id", 1], ["variant_id", 1], ["LIMIT", 1]]
15101
+ Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = ? ORDER BY "spree_stock_items"."id" ASC LIMIT ? [["stock_location_id", 1], ["variant_id", 1], ["LIMIT", 1]]
15102
+ Spree::StockMovement Create (0.2ms) INSERT INTO "spree_stock_movements" ("stock_item_id", "quantity", "created_at", "updated_at", "originator_type", "originator_id") VALUES (?, ?, ?, ?, ?, ?) [["stock_item_id", 1], ["quantity", -1], ["created_at", "2019-11-22 20:25:51.324317"], ["updated_at", "2019-11-22 20:25:51.324317"], ["originator_type", "Spree::Shipment"], ["originator_id", 1]]
15103
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15104
+ Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."id" = ? LIMIT ?  [["id", 1], ["LIMIT", 1]]
15105
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15106
+ Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15107
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."id" != ? AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
15108
+ Spree::StockItem Update (0.1ms) UPDATE "spree_stock_items" SET "count_on_hand" = ?, "updated_at" = ? WHERE "spree_stock_items"."id" = ? [["count_on_hand", -1], ["updated_at", "2019-11-22 20:25:51.329179"], ["id", 1]]
15109
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.330028"], ["id", 1]]
15110
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15111
+ Spree::InventoryUnit Update (0.2ms) UPDATE "spree_inventory_units" SET "pending" = ?, "updated_at" = ? WHERE "spree_inventory_units"."id" = ? [["pending", 0], ["updated_at", "2019-11-22 20:25:51.332028"], ["id", 1]]
15112
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:51.331715"], ["id", 1]]
15113
+ Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15115
+  (0.1ms) SAVEPOINT active_record_1
15116
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R000738502"], ["id", 1], ["LIMIT", 1]]
15117
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ?, "shipment_state" = ?, "payment_state" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.337300"], ["shipment_state", "pending"], ["payment_state", "balance_due"], ["id", 1]]
15118
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "checkout"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "balance_due"], ["created_at", "2019-11-22 20:25:51.338938"], ["updated_at", "2019-11-22 20:25:51.338938"]]
15119
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "pending"], ["created_at", "2019-11-22 20:25:51.340016"], ["updated_at", "2019-11-22 20:25:51.340016"]]
15120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15121
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
15122
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15123
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15124
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15125
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15126
+  (0.1ms) SAVEPOINT active_record_1
15127
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ?, "completed_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.346145"], ["completed_at", "2019-11-22 20:25:51.346145"], ["id", 1]]
15128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15129
+ [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 40eadf89-e492-4bba-b945-46fe12b51c95) to Async(mailers) with arguments: "Spree::OrderMailer", "confirm_email", "deliver_now", {:args=>[#<GlobalID:0x00007fc7162c85c8 @uri=#<URI::GID gid://dummy/Spree::Order/1>>]}
15130
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "confirmation_delivered" = ? WHERE "spree_orders"."id" = ? [["confirmation_delivered", 1], ["id", 1]]
15131
+ Order R000738502 transitioned from confirm to complete via complete
15132
+  (1.1ms) rollback transaction
15133
+  (0.1ms) begin transaction
15134
+  (0.1ms) SAVEPOINT active_record_1
15135
+ Spree::User Exists? (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email3@example.com"], ["LIMIT", 1]]
15136
+ Spree::User Create (0.5ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "af5bbabf42e115ccfe076a5765d9041c24824883339814a67670c4893e56ab8f753d5e22a466f64dc227d261d737aed3011a7775eddf3d4f5e04b48af7cddc21"], ["password_salt", "wyyb7fGEPmLzMczhvNBg"], ["email", "email3@example.com"], ["login", "email3@example.com"], ["created_at", "2019-11-22 20:25:51.371680"], ["updated_at", "2019-11-22 20:25:51.371680"]]
15137
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
15138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15139
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
15140
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
15141
+  (0.1ms) SAVEPOINT active_record_1
15142
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:51.380746"], ["created_at", "2019-11-22 20:25:51.380746"]]
15143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15144
+  (0.1ms) SAVEPOINT active_record_1
15145
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:51.383110"], ["created_at", "2019-11-22 20:25:51.383110"]]
15146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15147
+  (0.1ms) SAVEPOINT active_record_1
15148
+ Spree::Address Create (0.3ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.385644"], ["updated_at", "2019-11-22 20:25:51.385644"]]
15149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15150
+ Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
15151
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15152
+  (0.1ms) SAVEPOINT active_record_1
15153
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10006"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.393104"], ["updated_at", "2019-11-22 20:25:51.393104"]]
15154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15155
+  (0.1ms) SAVEPOINT active_record_1
15156
+ Spree::Store Exists? (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_3"], ["LIMIT", 1]]
15157
+  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
15158
+ Spree::Store Create (0.2ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 3"], ["url", "www.example3.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_3"], ["default", 1], ["created_at", "2019-11-22 20:25:51.397845"], ["updated_at", "2019-11-22 20:25:51.397845"]]
15159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15160
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
15161
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
15162
+  (0.1ms) SAVEPOINT active_record_1
15163
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
15164
+ Spree::StockLocation Create (0.2ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:51.405931"], ["updated_at", "2019-11-22 20:25:51.405931"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
15165
+ Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
15166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15167
+  (0.1ms) SELECT sqlite_version(*)
15168
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
15169
+ Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15170
+  (0.1ms) SAVEPOINT active_record_1
15171
+ Spree::ShippingCategory Create (0.1ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #6"], ["created_at", "2019-11-22 20:25:51.416951"], ["updated_at", "2019-11-22 20:25:51.416951"]]
15172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15173
+ Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
15174
+  (0.0ms) SAVEPOINT active_record_1
15175
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 820806"], ["LIMIT", 1]]
15176
+ Spree::TaxCategory Create (0.1ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 820806"], ["created_at", "2019-11-22 20:25:51.419883"], ["updated_at", "2019-11-22 20:25:51.419883"], ["tax_code", "TaxCode - 858530"]]
15177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15178
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
15179
+  (0.1ms) SAVEPOINT active_record_1
15180
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-6-2505"], ["LIMIT", 1]]
15181
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-6-2505' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
15182
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
15183
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-9"], ["LIMIT", 1]]
15184
+ Spree::TaxRate Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
15185
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-9"], ["LIMIT", 1]]
15186
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-6-2505"], ["LIMIT", 1]]
15187
+ Spree::Product Create (0.2ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #6 - 2505"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:51.415041"], ["slug", "product-6-2505"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:51.430908"], ["updated_at", "2019-11-22 20:25:51.430908"]]
15188
+ Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
15189
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-9"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:51.432060"], ["created_at", "2019-11-22 20:25:51.432060"]]
15190
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:51.434776"], ["updated_at", "2019-11-22 20:25:51.434776"]]
15191
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
15192
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
15193
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:51.467729"], ["updated_at", "2019-11-22 20:25:51.467729"], ["backorderable", 1]]
15194
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.468899"], ["id", 1]]
15195
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
15196
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
15197
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15198
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
15199
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
15200
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-6-2505"]]
15201
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15202
+ FriendlyId::Slug Create (0.3ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-6-2505"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:51.480938"], ["updated_at", "2019-11-22 20:25:51.480938"]]
15203
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15204
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.435616"], ["id", 1]]
15205
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:51.483811"], ["id", 1]]
15206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15207
+  (0.1ms) SAVEPOINT active_record_1
15208
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R986660446"], ["LIMIT", 1]]
15209
+ Spree::Order Exists? (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R986660446"], ["LIMIT", 1]]
15210
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "lZWXcCffIdXunIEktRaESw"], ["LIMIT", 1]]
15211
+ Spree::Order Create (0.4ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R986660446"], ["state", "complete"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email3@example.com"], ["created_at", "2019-11-22 20:25:51.488998"], ["updated_at", "2019-11-22 20:25:51.488998"], ["currency", "USD"], ["guest_token", "lZWXcCffIdXunIEktRaESw"], ["store_id", 1]]
15212
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
15213
+ Spree::LineItem Create (0.2ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:25:51.493112"], ["updated_at", "2019-11-22 20:25:51.493112"], ["cost_price", 17.0], ["tax_category_id", 1]]
15214
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.494298"], ["id", 1]]
15215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15216
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
15217
+  (0.1ms) SAVEPOINT active_record_1
15218
+ Spree::Shipment Exists? (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H11512667136"], ["LIMIT", 1]]
15219
+ Spree::Shipment Create (0.5ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H11512667136"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:25:51.498615"], ["updated_at", "2019-11-22 20:25:51.498615"], ["stock_location_id", 1]]
15220
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.500461"], ["id", 1]]
15221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15222
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
15223
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"
15224
+  (0.1ms) SAVEPOINT active_record_1
15225
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
15226
+ Spree::Zone Create (0.3ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:25:51.505754"], ["updated_at", "2019-11-22 20:25:51.505754"]]
15227
+ Spree::ZoneMember Create (0.3ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:51.507770"], ["updated_at", "2019-11-22 20:25:51.507770"]]
15228
+ Spree::Zone Update All (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
15229
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15230
+  (0.1ms) SAVEPOINT active_record_1
15231
+ Spree::Zone Exists? (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
15232
+ Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
15233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15234
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
15235
+  (0.1ms) SAVEPOINT active_record_1
15236
+ Spree::Zone Exists? (0.3ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
15237
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:25:51.521519"], ["updated_at", "2019-11-22 20:25:51.521519"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
15238
+ Spree::Calculator::Shipping::FlatRate Create (0.2ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:25:51.522825"], ["updated_at", "2019-11-22 20:25:51.522825"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
15239
+ Spree::ShippingMethodCategory Create (0.2ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:51.524229"], ["updated_at", "2019-11-22 20:25:51.524229"]]
15240
+ Spree::ShippingMethodZone Create (0.1ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:51.525319"], ["updated_at", "2019-11-22 20:25:51.525319"]]
15241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15242
+  (0.1ms) SAVEPOINT active_record_1
15243
+ Spree::ShippingRate Create (0.2ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:25:51.527596"], ["updated_at", "2019-11-22 20:25:51.527596"]]
15244
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.528819"], ["id", 1]]
15245
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.530065"], ["id", 1]]
15246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15247
+  (0.2ms) SAVEPOINT active_record_1
15248
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15249
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15250
+ Spree::InventoryUnit Create (0.3ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:25:51.534917"], ["updated_at", "2019-11-22 20:25:51.534917"], ["line_item_id", 1]]
15251
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.536198"], ["id", 1]]
15252
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.537273"], ["id", 1]]
15253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15254
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
15255
+  (0.1ms) SAVEPOINT active_record_1
15256
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
15257
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15258
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
15259
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
15260
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
15261
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15262
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15263
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15264
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15265
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15266
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:25:51.552003"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
15267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15268
+  (0.1ms) SAVEPOINT active_record_1
15269
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R986660446"], ["id", 1], ["LIMIT", 1]]
15270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15271
+ Spree::InventoryUnit Update All (0.1ms) UPDATE "spree_inventory_units" SET "state" = ?, "pending" = ? WHERE "spree_inventory_units"."shipment_id" = ? [["state", "on_hand"], ["pending", 0], ["shipment_id", 1]]
15272
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "completed_at" = ? WHERE "spree_orders"."id" = ? [["completed_at", "2019-11-22 20:25:51.558444"], ["id", 1]]
15273
+  (0.1ms) SAVEPOINT active_record_1
15274
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
15275
+ Spree::PaymentMethod::BogusCreditCard Create (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:51.560329"], ["updated_at", "2019-11-22 20:25:51.560329"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
15276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15277
+  (0.1ms) SAVEPOINT active_record_1
15278
+ Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
15279
+ Spree::PaymentMethod::BogusCreditCard Create (0.1ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:51.565057"], ["updated_at", "2019-11-22 20:25:51.565057"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
15280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15281
+  (0.1ms) SAVEPOINT active_record_1
15282
+ Spree::CreditCard Create (0.2ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:25:51.569224"], ["updated_at", "2019-11-22 20:25:51.569224"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
15283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15284
+  (0.1ms) SAVEPOINT active_record_1
15285
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "CXZKE8US"], ["LIMIT", 1]]
15286
+ Spree::Payment Create (0.5ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "pending"], ["response_code", "12345"], ["created_at", "2019-11-22 20:25:51.572716"], ["updated_at", "2019-11-22 20:25:51.572716"], ["number", "CXZKE8US"]]
15287
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
15288
+ Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-514233"], ["LIMIT", 1]]
15289
+ Spree::CreditCard Update (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-514233"], ["updated_at", "2019-11-22 20:25:51.578811"], ["id", 1]]
15290
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15291
+ Spree::TaxRate Load (0.4ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15292
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
15293
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
15294
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
15295
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15296
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "shipment_state" = ?, "payment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["shipment_state", "pending"], ["payment_state", "balance_due"], ["updated_at", "2019-11-22 20:25:51.592601"], ["id", 1]]
15297
+ Spree::StateChange Create (0.3ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "balance_due"], ["created_at", "2019-11-22 20:25:51.595077"], ["updated_at", "2019-11-22 20:25:51.595077"]]
15298
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "pending"], ["created_at", "2019-11-22 20:25:51.596568"], ["updated_at", "2019-11-22 20:25:51.596568"]]
15299
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.575687"], ["id", 1]]
15300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15301
+  (0.1ms) SAVEPOINT active_record_1
15302
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "state" = ?, "updated_at" = ? WHERE "spree_shipments"."id" = ? [["state", "ready"], ["updated_at", "2019-11-22 20:25:51.599884"], ["id", 1]]
15303
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.601645"], ["id", 1]]
15304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15305
+  (0.1ms) SAVEPOINT active_record_1
15306
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "state" = ?, "updated_at" = ? WHERE "spree_shipments"."id" = ? [["state", "shipped"], ["updated_at", "2019-11-22 20:25:51.603788"], ["id", 1]]
15307
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.605385"], ["id", 1]]
15308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15309
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15310
+ Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15311
+  (0.1ms) SAVEPOINT active_record_1
15312
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? AND "spree_inventory_units"."state" = ? [["shipment_id", 1], ["state", "on_hand"]]
15313
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15314
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15315
+ Spree::InventoryUnit Update (0.1ms) UPDATE "spree_inventory_units" SET "state" = ?, "updated_at" = ? WHERE "spree_inventory_units"."id" = ? [["state", "shipped"], ["updated_at", "2019-11-22 20:25:51.613427"], ["id", 1]]
15316
+ Spree::Carton Exists? (0.2ms) SELECT 1 AS one FROM "spree_cartons" WHERE "spree_cartons"."number" = ? LIMIT ? [["number", "C42441166002"], ["LIMIT", 1]]
15317
+ Spree::Carton Create (0.3ms) INSERT INTO "spree_cartons" ("number", "stock_location_id", "address_id", "shipping_method_id", "tracking", "shipped_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["number", "C42441166002"], ["stock_location_id", 1], ["address_id", 2], ["shipping_method_id", 1], ["tracking", "U10000"], ["shipped_at", "2019-11-22 20:25:51.610050"], ["created_at", "2019-11-22 20:25:51.634973"], ["updated_at", "2019-11-22 20:25:51.634973"]]
15318
+ Spree::InventoryUnit Update (0.1ms) UPDATE "spree_inventory_units" SET "updated_at" = ?, "carton_id" = ? WHERE "spree_inventory_units"."id" = ? [["updated_at", "2019-11-22 20:25:51.636685"], ["carton_id", 1], ["id", 1]]
15319
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.637702"], ["id", 1]]
15320
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.639059"], ["id", 1]]
15321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15322
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
15323
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "state" = ?, "shipped_at" = ? WHERE "spree_shipments"."id" = ? [["state", "shipped"], ["shipped_at", "2019-11-22 20:25:51.643538"], ["id", 1]]
15324
+ Spree::Order Load (0.6ms) SELECT DISTINCT "spree_orders".* FROM "spree_orders" INNER JOIN "spree_shipments" ON "spree_orders"."id" = "spree_shipments"."order_id" INNER JOIN "spree_inventory_units" ON "spree_shipments"."id" = "spree_inventory_units"."shipment_id" WHERE "spree_inventory_units"."carton_id" = ? [["carton_id", 1]]
15325
+ [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 40e162c6-ea77-4ae8-b258-45e6890ac4a5) to Async(mailers) with arguments: "Spree::CartonMailer", "shipped_email", "deliver_now", {:args=>[{:order=>#<GlobalID:0x00007fc710e87680 @uri=#<URI::GID gid://dummy/Spree::Order/1>>, :carton=>#<GlobalID:0x00007fc710e86bb8 @uri=#<URI::GID gid://dummy/Spree::Carton/1>>}]}
15326
+  (0.1ms) SAVEPOINT active_record_1
15327
+ Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15328
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15329
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15330
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
15331
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
15332
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "shipment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["shipment_state", "shipped"], ["updated_at", "2019-11-22 20:25:51.666926"], ["id", 1]]
15333
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["previous_state", "pending"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "shipped"], ["created_at", "2019-11-22 20:25:51.669570"], ["updated_at", "2019-11-22 20:25:51.669570"]]
15334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15335
+  (0.1ms) SAVEPOINT active_record_1
15336
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["previous_state", "ready"], ["stateful_id", 1], ["stateful_type", "Spree::Shipment"], ["next_state", "shipped"], ["created_at", "2019-11-22 20:25:51.671911"], ["updated_at", "2019-11-22 20:25:51.671911"]]
15337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15338
+  (1.2ms) rollback transaction
15339
+  (0.1ms) begin transaction
15340
+  (0.1ms) SAVEPOINT active_record_1
15341
+ Spree::User Exists? (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email4@example.com"], ["LIMIT", 1]]
15342
+ Spree::User Create (0.5ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "a826e8026ed30da05eb112b53a59ac60e0fef94b2c2aeb3e10dd31c59f1f558674da9f7165919eb73bc636dad3c323e1122ea50c0a0294a0f7cd8e59e09e9fb7"], ["password_salt", "gy6cy4jgUBcsainmCceZ"], ["email", "email4@example.com"], ["login", "email4@example.com"], ["created_at", "2019-11-22 20:25:51.681163"], ["updated_at", "2019-11-22 20:25:51.681163"]]
15343
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
15344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15345
+ Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
15346
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
15347
+  (0.1ms) SAVEPOINT active_record_1
15348
+ Spree::Country Create (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:51.689232"], ["created_at", "2019-11-22 20:25:51.689232"]]
15349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15350
+  (0.1ms) SAVEPOINT active_record_1
15351
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:51.691425"], ["created_at", "2019-11-22 20:25:51.691425"]]
15352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15353
+  (0.1ms) SAVEPOINT active_record_1
15354
+ Spree::Address Create (0.3ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10007"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.693038"], ["updated_at", "2019-11-22 20:25:51.693038"]]
15355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15356
+ Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
15357
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15358
+  (0.1ms) SAVEPOINT active_record_1
15359
+ Spree::Address Create (0.1ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10008"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.697051"], ["updated_at", "2019-11-22 20:25:51.697051"]]
15360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15361
+  (0.1ms) SAVEPOINT active_record_1
15362
+ Spree::Store Exists? (0.1ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_4"], ["LIMIT", 1]]
15363
+  (0.3ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
15364
+ Spree::Store Create (0.4ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 4"], ["url", "www.example4.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_4"], ["default", 1], ["created_at", "2019-11-22 20:25:51.701455"], ["updated_at", "2019-11-22 20:25:51.701455"]]
15365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15366
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]]
15367
+ Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY "spree_states"."name" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
15368
+  (0.1ms) SAVEPOINT active_record_1
15369
+ Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (1 = 1) AND ("spree_stock_locations"."position" IS NOT NULL) ORDER BY "spree_stock_locations"."position" DESC LIMIT ? [["LIMIT", 1]]
15370
+ Spree::StockLocation Create (0.2ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at", "address1", "city", "state_id", "country_id", "zipcode", "phone", "backorderable_default", "position") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "NY Warehouse"], ["created_at", "2019-11-22 20:25:51.707261"], ["updated_at", "2019-11-22 20:25:51.707261"], ["address1", "1600 Pennsylvania Ave NW"], ["city", "Washington"], ["state_id", 1], ["country_id", 1], ["zipcode", "20500"], ["phone", "(202) 456-1111"], ["backorderable_default", 1], ["position", 1]]
15371
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]
15372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15373
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
15374
+  (0.1ms) SAVEPOINT active_record_1
15375
+ Spree::ShippingCategory Create (0.2ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "ShippingCategory #7"], ["created_at", "2019-11-22 20:25:51.715451"], ["updated_at", "2019-11-22 20:25:51.715451"]]
15376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15377
+ Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
15378
+  (0.1ms) SAVEPOINT active_record_1
15379
+ Spree::TaxCategory Exists? (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE "spree_tax_categories"."name" = ? AND "spree_tax_categories"."deleted_at" IS NULL LIMIT ? [["name", "TaxCategory - 963197"], ["LIMIT", 1]]
15380
+ Spree::TaxCategory Create (0.1ms) INSERT INTO "spree_tax_categories" ("name", "created_at", "updated_at", "tax_code") VALUES (?, ?, ?, ?) [["name", "TaxCategory - 963197"], ["created_at", "2019-11-22 20:25:51.718896"], ["updated_at", "2019-11-22 20:25:51.718896"], ["tax_code", "TaxCode - 639589"]]
15381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15382
+  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"
15383
+  (0.1ms) SAVEPOINT active_record_1
15384
+ Spree::Product Exists? (0.2ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "spree_products"."slug" = ? LIMIT ? [["sluggable_type", "Spree::Product"], ["slug", "product-7-3356"], ["LIMIT", 1]]
15385
+ Spree::Product Exists? (0.3ms) SELECT 1 AS one FROM "spree_products" INNER JOIN "friendly_id_slugs" ON "friendly_id_slugs"."sluggable_id" = "spree_products"."id" AND "friendly_id_slugs"."sluggable_type" = ? WHERE "spree_products"."id" IS NOT NULL AND "friendly_id_slugs"."sluggable_type" = 'Spree::Product' AND "friendly_id_slugs"."slug" = 'product-7-3356' LIMIT ? [["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
15386
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
15387
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-10"], ["LIMIT", 1]]
15388
+ Spree::TaxRate Exists? (0.2ms) SELECT 1 AS one FROM "spree_tax_rates" INNER JOIN "spree_tax_rate_tax_categories" ON "spree_tax_rates"."id" = "spree_tax_rate_tax_categories"."tax_rate_id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rate_tax_categories"."tax_category_id" = ? AND "spree_tax_rates"."included_in_price" = ? LIMIT ? [["tax_category_id", 1], ["included_in_price", 1], ["LIMIT", 1]]
15389
+ Spree::Variant Exists? (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = ? AND "spree_variants"."deleted_at" IS NULL LIMIT ? [["sku", "SKU-10"], ["LIMIT", 1]]
15390
+ Spree::Product Exists? (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = ? AND "spree_products"."deleted_at" IS NULL LIMIT ? [["slug", "product-7-3356"], ["LIMIT", 1]]
15391
+ Spree::Product Create (0.3ms) INSERT INTO "spree_products" ("name", "description", "available_on", "slug", "tax_category_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Product #7 - 3356"], ["description", "As seen on TV!"], ["available_on", "2018-11-22 20:25:51.714194"], ["slug", "product-7-3356"], ["tax_category_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:51.731702"], ["updated_at", "2019-11-22 20:25:51.731702"]]
15392
+ Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = ? AND ("spree_variants"."position" IS NOT NULL) ORDER BY "spree_variants"."position" DESC LIMIT ? [["product_id", 1], ["LIMIT", 1]]
15393
+ Spree::Variant Create (0.3ms) INSERT INTO "spree_variants" ("sku", "is_master", "product_id", "cost_price", "position", "cost_currency", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["sku", "SKU-10"], ["is_master", 1], ["product_id", 1], ["cost_price", 17.0], ["position", 1], ["cost_currency", "USD"], ["updated_at", "2019-11-22 20:25:51.733226"], ["created_at", "2019-11-22 20:25:51.733226"]]
15394
+ Spree::Price Create (0.2ms) INSERT INTO "spree_prices" ("variant_id", "amount", "currency", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["variant_id", 1], ["amount", 19.99], ["currency", "USD"], ["created_at", "2019-11-22 20:25:51.735826"], ["updated_at", "2019-11-22 20:25:51.735826"]]
15395
+ Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."propagate_all_variants" = ? [["propagate_all_variants", 1]]
15396
+ Spree::StockItem Exists? (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."variant_id" = ? AND "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."deleted_at" IS NULL LIMIT ? [["variant_id", 1], ["stock_location_id", 1], ["LIMIT", 1]]
15397
+ Spree::StockItem Create (0.3ms) INSERT INTO "spree_stock_items" ("stock_location_id", "variant_id", "created_at", "updated_at", "backorderable") VALUES (?, ?, ?, ?, ?) [["stock_location_id", 1], ["variant_id", 1], ["created_at", "2019-11-22 20:25:51.740594"], ["updated_at", "2019-11-22 20:25:51.740594"], ["backorderable", 1]]
15398
+ Spree::Variant Update (0.2ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.741936"], ["id", 1]]
15399
+  (0.1ms) SELECT MAX("spree_variants"."position") FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = ? [["product_id", 1], ["is_master", 0]]
15400
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "position" = ? WHERE "spree_variants"."id" = ? [["position", 1], ["id", 1]]
15401
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15402
+  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? AND "spree_stock_locations"."active" = ? [["variant_id", 1], ["active", 1]]
15403
+ FriendlyId::Slug Load (0.1ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? ORDER BY "friendly_id_slugs"."id" DESC LIMIT ? [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["LIMIT", 1]]
15404
+ FriendlyId::Slug Destroy (0.2ms) DELETE FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."id" IN (SELECT "friendly_id_slugs"."id" FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."sluggable_id" = ? AND "friendly_id_slugs"."sluggable_type" = ? AND "friendly_id_slugs"."slug" = ? ORDER BY "friendly_id_slugs"."id" DESC) [["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["slug", "product-7-3356"]]
15405
+ Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15406
+ FriendlyId::Slug Create (0.5ms) INSERT INTO "friendly_id_slugs" ("slug", "sluggable_id", "sluggable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["slug", "product-7-3356"], ["sluggable_id", 1], ["sluggable_type", "Spree::Product"], ["created_at", "2019-11-22 20:25:51.754727"], ["updated_at", "2019-11-22 20:25:51.754727"]]
15407
+ Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15408
+ Spree::Variant Update (0.1ms) UPDATE "spree_variants" SET "updated_at" = ? WHERE "spree_variants"."id" = ? [["updated_at", "2019-11-22 20:25:51.736807"], ["id", 1]]
15409
+ Spree::Product Update (0.1ms) UPDATE "spree_products" SET "updated_at" = ? WHERE "spree_products"."id" = ? [["updated_at", "2019-11-22 20:25:51.758110"], ["id", 1]]
15410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15411
+  (0.1ms) SAVEPOINT active_record_1
15412
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R438720776"], ["LIMIT", 1]]
15413
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R438720776"], ["LIMIT", 1]]
15414
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "-gI2USF8TIeAVUwO5A3Dqw"], ["LIMIT", 1]]
15415
+ Spree::Order Create (0.5ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R438720776"], ["state", "complete"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email4@example.com"], ["created_at", "2019-11-22 20:25:51.763422"], ["updated_at", "2019-11-22 20:25:51.763422"], ["currency", "USD"], ["guest_token", "-gI2USF8TIeAVUwO5A3Dqw"], ["store_id", 1]]
15416
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
15417
+ Spree::LineItem Create (0.3ms) INSERT INTO "spree_line_items" ("variant_id", "order_id", "quantity", "price", "created_at", "updated_at", "cost_price", "tax_category_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["variant_id", 1], ["order_id", 1], ["quantity", 1], ["price", 10.0], ["created_at", "2019-11-22 20:25:51.768082"], ["updated_at", "2019-11-22 20:25:51.768082"], ["cost_price", 17.0], ["tax_category_id", 1]]
15418
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.769468"], ["id", 1]]
15419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15420
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC [["order_id", 1]]
15421
+  (0.1ms) SAVEPOINT active_record_1
15422
+ Spree::Shipment Exists? (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."number" = ? LIMIT ? [["number", "H08284788745"], ["LIMIT", 1]]
15423
+ Spree::Shipment Create (0.3ms) INSERT INTO "spree_shipments" ("tracking", "number", "cost", "order_id", "state", "created_at", "updated_at", "stock_location_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["tracking", "U10000"], ["number", "H08284788745"], ["cost", 100.0], ["order_id", 1], ["state", "pending"], ["created_at", "2019-11-22 20:25:51.773564"], ["updated_at", "2019-11-22 20:25:51.773564"], ["stock_location_id", 1]]
15424
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.774866"], ["id", 1]]
15425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15426
+ Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
15427
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"
15428
+  (0.1ms) SAVEPOINT active_record_1
15429
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? LIMIT ? [["name", "GlobalZone"], ["LIMIT", 1]]
15430
+ Spree::Zone Create (0.2ms) INSERT INTO "spree_zones" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "GlobalZone"], ["created_at", "2019-11-22 20:25:51.779461"], ["updated_at", "2019-11-22 20:25:51.779461"]]
15431
+ Spree::ZoneMember Create (0.3ms) INSERT INTO "spree_zone_members" ("zoneable_type", "zoneable_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["zoneable_type", "Spree::Country"], ["zoneable_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:51.781154"], ["updated_at", "2019-11-22 20:25:51.781154"]]
15432
+ Spree::Zone Update All (0.2ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + ? WHERE "spree_zones"."id" = ? [["zone_members_count", 1], ["id", 1]]
15433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15434
+  (0.1ms) SAVEPOINT active_record_1
15435
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
15436
+ Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]
15437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15438
+ Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]]
15439
+  (0.1ms) SAVEPOINT active_record_1
15440
+ Spree::Zone Exists? (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = ? AND "spree_zones"."id" != ? LIMIT ? [["name", "GlobalZone"], ["id", 1], ["LIMIT", 1]]
15441
+ Spree::ShippingMethod Create (0.2ms) INSERT INTO "spree_shipping_methods" ("name", "created_at", "updated_at", "code", "carrier", "service_level") VALUES (?, ?, ?, ?, ?, ?) [["name", "UPS Ground"], ["created_at", "2019-11-22 20:25:51.793070"], ["updated_at", "2019-11-22 20:25:51.793070"], ["code", "UPS_GROUND"], ["carrier", "UPS"], ["service_level", "1DAYGROUND"]]
15442
+ Spree::Calculator::Shipping::FlatRate Create (0.2ms) INSERT INTO "spree_calculators" ("type", "calculable_type", "calculable_id", "created_at", "updated_at", "preferences") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::Calculator::Shipping::FlatRate"], ["calculable_type", "Spree::ShippingMethod"], ["calculable_id", 1], ["created_at", "2019-11-22 20:25:51.794148"], ["updated_at", "2019-11-22 20:25:51.794148"], ["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1e3\n:currency: USD\n"]]
15443
+ Spree::ShippingMethodCategory Create (0.2ms) INSERT INTO "spree_shipping_method_categories" ("shipping_method_id", "shipping_category_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["shipping_category_id", 1], ["created_at", "2019-11-22 20:25:51.795758"], ["updated_at", "2019-11-22 20:25:51.795758"]]
15444
+ Spree::ShippingMethodZone Create (0.1ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id", "zone_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["shipping_method_id", 1], ["zone_id", 1], ["created_at", "2019-11-22 20:25:51.796978"], ["updated_at", "2019-11-22 20:25:51.796978"]]
15445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15446
+  (0.1ms) SAVEPOINT active_record_1
15447
+ Spree::ShippingRate Create (0.2ms) INSERT INTO "spree_shipping_rates" ("shipment_id", "shipping_method_id", "selected", "cost", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["shipment_id", 1], ["shipping_method_id", 1], ["selected", 1], ["cost", 100.0], ["created_at", "2019-11-22 20:25:51.799163"], ["updated_at", "2019-11-22 20:25:51.799163"]]
15448
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.800420"], ["id", 1]]
15449
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.801395"], ["id", 1]]
15450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15451
+  (0.1ms) SAVEPOINT active_record_1
15452
+ Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15453
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15454
+ Spree::InventoryUnit Create (0.3ms) INSERT INTO "spree_inventory_units" ("state", "variant_id", "shipment_id", "created_at", "updated_at", "line_item_id") VALUES (?, ?, ?, ?, ?, ?) [["state", "on_hand"], ["variant_id", 1], ["shipment_id", 1], ["created_at", "2019-11-22 20:25:51.806374"], ["updated_at", "2019-11-22 20:25:51.806374"], ["line_item_id", 1]]
15455
+ Spree::Shipment Update (0.1ms) UPDATE "spree_shipments" SET "updated_at" = ? WHERE "spree_shipments"."id" = ? [["updated_at", "2019-11-22 20:25:51.807610"], ["id", 1]]
15456
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.808753"], ["id", 1]]
15457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15458
+ Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]
15459
+  (0.1ms) SAVEPOINT active_record_1
15460
+ Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY "spree_shipping_rates"."cost" ASC [["shipment_id", 1]]
15461
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15462
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]]
15463
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]]
15464
+ Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."created_at" ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
15465
+ Spree::TaxRate Load (0.3ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15466
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15467
+ Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15468
+ Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15469
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15470
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "item_total" = ?, "total" = ?, "updated_at" = ?, "shipment_total" = ?, "item_count" = ? WHERE "spree_orders"."id" = ? [["item_total", 10.0], ["total", 110.0], ["updated_at", "2019-11-22 20:25:51.824375"], ["shipment_total", 100.0], ["item_count", 1], ["id", 1]]
15471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15472
+  (0.1ms) SAVEPOINT active_record_1
15473
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? AND "spree_orders"."id" != ? LIMIT ? [["number", "R438720776"], ["id", 1], ["LIMIT", 1]]
15474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15475
+ Spree::InventoryUnit Update All (0.2ms) UPDATE "spree_inventory_units" SET "state" = ?, "pending" = ? WHERE "spree_inventory_units"."shipment_id" = ? [["state", "on_hand"], ["pending", 0], ["shipment_id", 1]]
15476
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "completed_at" = ? WHERE "spree_orders"."id" = ? [["completed_at", "2019-11-22 20:25:51.830265"], ["id", 1]]
15477
+  (0.2ms) SAVEPOINT active_record_1
15478
+ Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
15479
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:51.832136"], ["updated_at", "2019-11-22 20:25:51.832136"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 1]]
15480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15481
+  (0.1ms) SAVEPOINT active_record_1
15482
+ Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]]
15483
+ Spree::PaymentMethod::BogusCreditCard Create (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "preferences", "position") VALUES (?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::BogusCreditCard"], ["name", "Credit Card"], ["created_at", "2019-11-22 20:25:51.837476"], ["updated_at", "2019-11-22 20:25:51.837476"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["position", 2]]
15484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15485
+  (0.1ms) SAVEPOINT active_record_1
15486
+ Spree::CreditCard Create (0.2ms) INSERT INTO "spree_credit_cards" ("month", "year", "last_digits", "created_at", "updated_at", "name", "user_id", "payment_method_id", "address_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["month", "12"], ["year", "2020"], ["last_digits", "1111"], ["created_at", "2019-11-22 20:25:51.843023"], ["updated_at", "2019-11-22 20:25:51.843023"], ["name", "Spree Commerce"], ["user_id", 1], ["payment_method_id", 2], ["address_id", 1]]
15487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15488
+  (0.1ms) SAVEPOINT active_record_1
15489
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "46ES7V87"], ["LIMIT", 1]]
15490
+ Spree::Payment Create (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 110.0], ["order_id", 1], ["source_type", "Spree::CreditCard"], ["source_id", 1], ["payment_method_id", 1], ["state", "pending"], ["response_code", "12345"], ["created_at", "2019-11-22 20:25:51.848024"], ["updated_at", "2019-11-22 20:25:51.848024"], ["number", "46ES7V87"]]
15491
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1]]
15492
+ Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = ? ORDER BY "spree_credit_cards"."id" ASC LIMIT ? [["gateway_customer_profile_id", "BGS-004332"], ["LIMIT", 1]]
15493
+ Spree::CreditCard Update (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = ? [["gateway_customer_profile_id", "BGS-004332"], ["updated_at", "2019-11-22 20:25:51.856530"], ["id", 1]]
15494
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15495
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15496
+ Spree::Payment Exists? (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
15497
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
15498
+ Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]]
15499
+  (0.1ms) SELECT "spree_taxons"."name" FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]
15500
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "shipment_state" = ?, "payment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["shipment_state", "pending"], ["payment_state", "balance_due"], ["updated_at", "2019-11-22 20:25:51.867333"], ["id", 1]]
15501
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "balance_due"], ["created_at", "2019-11-22 20:25:51.869554"], ["updated_at", "2019-11-22 20:25:51.869554"]]
15502
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "pending"], ["created_at", "2019-11-22 20:25:51.870548"], ["updated_at", "2019-11-22 20:25:51.870548"]]
15503
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.851376"], ["id", 1]]
15504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15505
+  (0.1ms) SAVEPOINT active_record_1
15506
+ Spree::Payment Update (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = ? [["state", "completed"], ["updated_at", "2019-11-22 20:25:51.873468"], ["id", 1]]
15507
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "completed"]]
15508
+ Spree::Refund Load (0.1ms) SELECT "spree_refunds".* FROM "spree_refunds" WHERE "spree_refunds"."payment_id" = ? [["payment_id", 1]]
15509
+  (0.1ms) SELECT SUM("spree_refunds"."amount") FROM "spree_refunds" WHERE "spree_refunds"."payment_id" = ? [["payment_id", 1]]
15510
+ Spree::TaxRate Load (0.2ms) SELECT DISTINCT "spree_tax_rates".* FROM "spree_tax_rates" INNER JOIN "spree_zones" ON "spree_zones"."id" = "spree_tax_rates"."zone_id" INNER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE "spree_tax_rates"."deleted_at" IS NULL AND ("spree_zone_members"."zoneable_type" = 'Spree::State' AND "spree_zone_members"."zoneable_id" IN (1) OR "spree_zone_members"."zoneable_type" = 'Spree::Country' AND "spree_zone_members"."zoneable_id" IN (1))
15511
+ Spree::Payment Exists? (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" NOT IN (?, ?, ?) LIMIT ? [["order_id", 1], ["state", "failed"], ["state", "invalid"], ["state", "void"], ["LIMIT", 1]]
15512
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
15513
+  (0.1ms) SELECT SUM("spree_reimbursements"."total") FROM "spree_reimbursements" WHERE "spree_reimbursements"."order_id" = ? [["order_id", 1]]
15514
+ Spree::Shipment Update (0.2ms) UPDATE "spree_shipments" SET "state" = ?, "updated_at" = ? WHERE "spree_shipments"."id" = ? [["state", "ready"], ["updated_at", "2019-11-22 20:25:51.888305"], ["id", 1]]
15515
+ Spree::Order Update (0.2ms) UPDATE "spree_orders" SET "payment_total" = ?, "shipment_state" = ?, "payment_state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = ? [["payment_total", 110.0], ["shipment_state", "ready"], ["payment_state", "paid"], ["updated_at", "2019-11-22 20:25:51.891044"], ["id", 1]]
15516
+ Spree::StateChange Create (0.3ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "balance_due"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "paid"], ["created_at", "2019-11-22 20:25:51.893680"], ["updated_at", "2019-11-22 20:25:51.893680"]]
15517
+ Spree::StateChange Create (0.2ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "user_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "shipment"], ["previous_state", "pending"], ["stateful_id", 1], ["user_id", 1], ["stateful_type", "Spree::Order"], ["next_state", "ready"], ["created_at", "2019-11-22 20:25:51.895220"], ["updated_at", "2019-11-22 20:25:51.895220"]]
15518
+ Spree::StateChange Create (0.1ms) INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "payment"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["next_state", "completed"], ["created_at", "2019-11-22 20:25:51.897151"], ["updated_at", "2019-11-22 20:25:51.897151"]]
15519
+ Spree::Order Update (0.1ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2019-11-22 20:25:51.874786"], ["id", 1]]
15520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15521
+  (1.0ms) rollback transaction
15522
+  (0.1ms) begin transaction
15523
+  (0.1ms) SAVEPOINT active_record_1
15524
+ Spree::User Exists? (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = ? AND "spree_users"."deleted_at" IS NULL LIMIT ? [["email", "email5@example.com"], ["LIMIT", 1]]
15525
+ Spree::User Create (0.6ms) INSERT INTO "spree_users" ("encrypted_password", "password_salt", "email", "login", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["encrypted_password", "3cc69b1597c0e87db549105ecc514b0e6e20d2da8d86a0fa90da4794e36f374f58ac17845cb7f1b16269ff67cdb7f0cb5d8484fa3eddf8bcac343375bb421aaf"], ["password_salt", "cbYeKBs7zSMkxhRzjaEp"], ["email", "email5@example.com"], ["login", "email5@example.com"], ["created_at", "2019-11-22 20:25:51.906159"], ["updated_at", "2019-11-22 20:25:51.906159"]]
15526
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
15527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15528
+ Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
15529
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? LIMIT ? [["iso", "US"], ["LIMIT", 1]]
15530
+  (0.1ms) SAVEPOINT active_record_1
15531
+ Spree::Country Create (0.4ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["iso_name", "UNITED STATES"], ["iso", "US"], ["iso3", "USA"], ["name", "United States"], ["numcode", 840], ["updated_at", "2019-11-22 20:25:51.913210"], ["created_at", "2019-11-22 20:25:51.913210"]]
15532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15533
+  (0.1ms) SAVEPOINT active_record_1
15534
+ Spree::State Create (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at", "created_at") VALUES (?, ?, ?, ?, ?) [["name", "Alabama"], ["abbr", "AL"], ["country_id", 1], ["updated_at", "2019-11-22 20:25:51.916801"], ["created_at", "2019-11-22 20:25:51.916801"]]
15535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15536
+  (0.2ms) SAVEPOINT active_record_1
15537
+ Spree::Address Create (0.5ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "PO Box 1337"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10009"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.918864"], ["updated_at", "2019-11-22 20:25:51.918864"]]
15538
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15539
+ Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" INNER JOIN "spree_countries" ON "spree_countries"."id" = "spree_states"."country_id" WHERE (spree_countries.iso = ('US')) AND "spree_states"."abbr" = ? LIMIT ? [["abbr", "AL"], ["LIMIT", 1]]
15540
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
15541
+  (0.1ms) SAVEPOINT active_record_1
15542
+ Spree::Address Create (0.2ms) INSERT INTO "spree_addresses" ("firstname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["address1", "A Different Road"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "10010"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2019-11-22 20:25:51.927486"], ["updated_at", "2019-11-22 20:25:51.927486"]]
15543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15544
+  (0.1ms) SAVEPOINT active_record_1
15545
+ Spree::Store Exists? (0.3ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_5"], ["LIMIT", 1]]
15546
+  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", 1]]
15547
+ Spree::Store Create (0.2ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Test Store 5"], ["url", "www.example5.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_5"], ["default", 1], ["created_at", "2019-11-22 20:25:51.932231"], ["updated_at", "2019-11-22 20:25:51.932231"]]
15548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15549
+  (0.1ms) SAVEPOINT active_record_1
15550
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R682204045"], ["LIMIT", 1]]
15551
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R682204045"], ["LIMIT", 1]]
15552
+ Spree::Order Exists? (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "ym90ZhNxKeqGafJ_EV3PkA"], ["LIMIT", 1]]
15553
+ Spree::Order Create (0.5ms) INSERT INTO "spree_orders" ("number", "state", "user_id", "bill_address_id", "ship_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R682204045"], ["state", "cart"], ["user_id", 1], ["bill_address_id", 1], ["ship_address_id", 2], ["email", "email5@example.com"], ["created_at", "2019-11-22 20:25:51.936210"], ["updated_at", "2019-11-22 20:25:51.936210"], ["currency", "USD"], ["guest_token", "ym90ZhNxKeqGafJ_EV3PkA"], ["store_id", 1]]
15554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15555
+  (0.5ms) rollback transaction