spree_purchase_order 3.2.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/db/migrate/20160111123141_create_spree_purchase_orders.rb +1 -1
  3. data/db/migrate/20161214190805_add_payment_method_id_to_spree_purchase_orders.rb +1 -1
  4. data/db/migrate/20161214191512_add_user_id_to_spree_purchase_orders.rb +1 -1
  5. data/lib/spree_purchase_order/version.rb +1 -1
  6. data/spec/dummy/config/application.rb +0 -2
  7. data/spec/dummy/db/migrate/20180516191805_add_quantity_to_inventory_units.spree.rb +6 -0
  8. data/spec/dummy/db/migrate/20180516191806_add_original_return_item_id_to_spree_inventory_units.spree.rb +30 -0
  9. data/spec/dummy/db/migrate/20180516191807_add_unique_index_on_number_to_spree_orders.spree.rb +17 -0
  10. data/spec/dummy/db/migrate/20180516191808_add_unique_index_on_number_to_spree_stock_transfer.spree.rb +17 -0
  11. data/spec/dummy/db/migrate/20180516191809_add_unique_index_on_number_to_spree_shipment.spree.rb +17 -0
  12. data/spec/dummy/db/migrate/20180516191810_add_unique_index_on_number_to_spree_payments.spree.rb +18 -0
  13. data/spec/dummy/db/migrate/20180516191811_add_unique_index_on_number_to_spree_return_authorizations.spree.rb +17 -0
  14. data/spec/dummy/db/migrate/20180516191812_add_unique_index_on_number_to_spree_customer_returns.spree.rb +17 -0
  15. data/spec/dummy/db/migrate/20180516191813_add_unique_index_on_number_to_spree_reimbursements.spree.rb +17 -0
  16. data/spec/dummy/db/migrate/20180516191814_add_missing_unique_indexes_for_unique_attributes.spree.rb +38 -0
  17. data/spec/dummy/db/migrate/20180516191815_add_index_on_stock_location_to_spree_customer_returns.spree.rb +6 -0
  18. data/spec/dummy/db/migrate/20180516191816_add_index_on_prototype_to_spree_option_type_prototype.spree.rb +20 -0
  19. data/spec/dummy/db/migrate/20180516191817_add_indexes_to_spree_option_value_variant.spree.rb +20 -0
  20. data/spec/dummy/db/migrate/20180516191818_add_index_on_promotion_id_to_order_promotions.spree.rb +6 -0
  21. data/spec/dummy/db/migrate/20180516191819_add_indexes_for_property_prototype.spree.rb +21 -0
  22. data/spec/dummy/db/migrate/20180516191820_add_index_for_prototype_id_to_prototype_taxons.spree.rb +6 -0
  23. data/spec/dummy/db/migrate/20180516191821_add_indexes_to_refunds.spree.rb +7 -0
  24. data/spec/dummy/db/migrate/20180516191822_add_indexes_to_reimbursement_credits.spree.rb +7 -0
  25. data/spec/dummy/db/migrate/20180516191823_add_indexes_to_return_authorizations.spree.rb +7 -0
  26. data/spec/dummy/db/migrate/20180516191824_add_indexes_to_return_items.spree.rb +12 -0
  27. data/spec/dummy/db/migrate/20180516191825_add_index_to_role_users.spree.rb +19 -0
  28. data/spec/dummy/db/migrate/20180516191826_add_index_to_shipping_method_categories.spree.rb +6 -0
  29. data/spec/dummy/db/migrate/20180516191827_add_index_to_shipping_method_zones.spree.rb +21 -0
  30. data/spec/dummy/db/migrate/20180516191828_add_index_to_spree_shipping_rates.spree.rb +7 -0
  31. data/spec/dummy/db/migrate/20180516191829_add_index_to_spree_stock_items.spree.rb +6 -0
  32. data/spec/dummy/db/migrate/20180516191830_add_index_to_spree_stock_movement.spree.rb +6 -0
  33. data/spec/dummy/db/migrate/20180516191831_change_indexes_on_friendly_id_slugs.spree.rb +11 -0
  34. data/spec/dummy/db/migrate/20180516191832_add_analytics_kind_to_spree_trackers.spree.rb +6 -0
  35. data/spec/dummy/db/migrate/20180516191833_rename_tracker_kind_field.spree.rb +6 -0
  36. data/spec/dummy/db/schema.rb +553 -517
  37. data/spec/dummy/db/test.sqlite3 +0 -0
  38. data/spec/dummy/log/test.log +3913 -0
  39. metadata +62 -4
@@ -27684,3 +27684,3916 @@ Migrating to AddUserIdToSpreePurchaseOrders (20180516182071)
27684
27684
  SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2018-05-16 18:24:19.345260' WHERE "spree_orders"."id" = ? [["id", 1]]
27685
27685
   (0.1ms) RELEASE SAVEPOINT active_record_1
27686
27686
   (0.4ms) rollback transaction
27687
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
27688
+ Migrating to AddQuantityToInventoryUnits (20180516191805)
27689
+  (0.1ms) begin transaction
27690
+  (0.8ms) ALTER TABLE "spree_inventory_units" ADD "quantity" integer DEFAULT 1
27691
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191805"]]
27692
+  (85.5ms) commit transaction
27693
+ Migrating to AddOriginalReturnItemIdToSpreeInventoryUnits (20180516191806)
27694
+  (0.2ms) begin transaction
27695
+  (1.2ms) ALTER TABLE "spree_inventory_units" ADD "original_return_item_id" integer
27696
+  (0.2ms) SELECT sqlite_version(*)
27697
+  (0.4ms)  SELECT sql
27698
+ FROM sqlite_master
27699
+ WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'
27700
+ UNION ALL
27701
+ SELECT sql
27702
+ FROM sqlite_temp_master
27703
+ WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'
27704
+ 
27705
+  (0.4ms)  SELECT sql
27706
+ FROM sqlite_master
27707
+ WHERE name='index_inventory_units_on_variant_id' AND type='index'
27708
+ UNION ALL
27709
+ SELECT sql
27710
+ FROM sqlite_temp_master
27711
+ WHERE name='index_inventory_units_on_variant_id' AND type='index'
27712
+ 
27713
+  (0.4ms)  SELECT sql
27714
+ FROM sqlite_master
27715
+ WHERE name='index_inventory_units_on_shipment_id' AND type='index'
27716
+ UNION ALL
27717
+ SELECT sql
27718
+ FROM sqlite_temp_master
27719
+ WHERE name='index_inventory_units_on_shipment_id' AND type='index'
27720
+ 
27721
+  (0.4ms)  SELECT sql
27722
+ FROM sqlite_master
27723
+ WHERE name='index_inventory_units_on_order_id' AND type='index'
27724
+ UNION ALL
27725
+ SELECT sql
27726
+ FROM sqlite_temp_master
27727
+ WHERE name='index_inventory_units_on_order_id' AND type='index'
27728
+ 
27729
+  (0.7ms) CREATE INDEX "index_spree_inventory_units_on_original_return_item_id" ON "spree_inventory_units" ("original_return_item_id")
27730
+ Spree::ReturnItem Load (0.4ms) SELECT "spree_return_items".* FROM "spree_return_items" WHERE ("spree_return_items"."exchange_inventory_unit_id" IS NOT NULL) ORDER BY "spree_return_items"."id" ASC LIMIT ? [["LIMIT", 1000]]
27731
+  (0.4ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" integer NOT NULL PRIMARY KEY, "return_authorization_id" integer DEFAULT NULL, "inventory_unit_id" integer DEFAULT NULL, "exchange_variant_id" integer DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "reception_status" varchar DEFAULT NULL, "acceptance_status" varchar DEFAULT NULL, "customer_return_id" integer DEFAULT NULL, "reimbursement_id" integer DEFAULT NULL, "exchange_inventory_unit_id" integer DEFAULT NULL, "acceptance_status_errors" text DEFAULT NULL, "preferred_reimbursement_type_id" integer DEFAULT NULL, "override_reimbursement_type_id" integer DEFAULT NULL, "resellable" boolean DEFAULT 't' NOT NULL)
27732
+  (0.2ms)  SELECT sql
27733
+ FROM sqlite_master
27734
+ WHERE name='index_spree_return_items_on_exchange_inventory_unit_id' AND type='index'
27735
+ UNION ALL
27736
+ SELECT sql
27737
+ FROM sqlite_temp_master
27738
+ WHERE name='index_spree_return_items_on_exchange_inventory_unit_id' AND type='index'
27739
+ 
27740
+  (0.2ms)  SELECT sql
27741
+ FROM sqlite_master
27742
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
27743
+ UNION ALL
27744
+ SELECT sql
27745
+ FROM sqlite_temp_master
27746
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
27747
+ 
27748
+  (0.2ms) CREATE INDEX "tindex_aspree_return_items_on_exchange_inventory_unit_id" ON "aspree_return_items" ("exchange_inventory_unit_id")
27749
+  (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")
27750
+  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","exchange_inventory_unit_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable")
27751
+ SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","exchange_inventory_unit_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable" FROM "spree_return_items"
27752
+  (0.4ms) DROP TABLE "spree_return_items"
27753
+  (0.5ms) CREATE TABLE "spree_return_items" ("id" integer NOT NULL PRIMARY KEY, "return_authorization_id" integer DEFAULT NULL, "inventory_unit_id" integer DEFAULT NULL, "exchange_variant_id" integer DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "reception_status" varchar DEFAULT NULL, "acceptance_status" varchar DEFAULT NULL, "customer_return_id" integer DEFAULT NULL, "reimbursement_id" integer DEFAULT NULL, "acceptance_status_errors" text DEFAULT NULL, "preferred_reimbursement_type_id" integer DEFAULT NULL, "override_reimbursement_type_id" integer DEFAULT NULL, "resellable" boolean DEFAULT 't' NOT NULL)
27754
+  (0.3ms)  SELECT sql
27755
+ FROM sqlite_master
27756
+ WHERE name='tindex_return_items_on_customer_return_id' AND type='index'
27757
+ UNION ALL
27758
+ SELECT sql
27759
+ FROM sqlite_temp_master
27760
+ WHERE name='tindex_return_items_on_customer_return_id' AND type='index'
27761
+ 
27762
+  (0.2ms)  SELECT sql
27763
+ FROM sqlite_master
27764
+ WHERE name='tindex_aspree_return_items_on_exchange_inventory_unit_id' AND type='index'
27765
+ UNION ALL
27766
+ SELECT sql
27767
+ FROM sqlite_temp_master
27768
+ WHERE name='tindex_aspree_return_items_on_exchange_inventory_unit_id' AND type='index'
27769
+ 
27770
+  (0.3ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")
27771
+  (0.1ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable")
27772
+ SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable" FROM "aspree_return_items"
27773
+  (0.3ms) DROP TABLE "aspree_return_items"
27774
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191806"]]
27775
+  (168.1ms) commit transaction
27776
+ Migrating to AddUniqueIndexOnNumberToSpreeOrders (20180516191807)
27777
+  (0.1ms) begin transaction
27778
+  (0.4ms)  SELECT sql
27779
+ FROM sqlite_master
27780
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
27781
+ UNION ALL
27782
+ SELECT sql
27783
+ FROM sqlite_temp_master
27784
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
27785
+ 
27786
+  (0.3ms)  SELECT sql
27787
+ FROM sqlite_master
27788
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
27789
+ UNION ALL
27790
+ SELECT sql
27791
+ FROM sqlite_temp_master
27792
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
27793
+ 
27794
+  (0.3ms)  SELECT sql
27795
+ FROM sqlite_master
27796
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
27797
+ UNION ALL
27798
+ SELECT sql
27799
+ FROM sqlite_temp_master
27800
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
27801
+ 
27802
+  (0.3ms)  SELECT sql
27803
+ FROM sqlite_master
27804
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
27805
+ UNION ALL
27806
+ SELECT sql
27807
+ FROM sqlite_temp_master
27808
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
27809
+ 
27810
+  (0.3ms)  SELECT sql
27811
+ FROM sqlite_master
27812
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
27813
+ UNION ALL
27814
+ SELECT sql
27815
+ FROM sqlite_temp_master
27816
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
27817
+ 
27818
+  (0.3ms)  SELECT sql
27819
+ FROM sqlite_master
27820
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
27821
+ UNION ALL
27822
+ SELECT sql
27823
+ FROM sqlite_temp_master
27824
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
27825
+ 
27826
+  (0.3ms)  SELECT sql
27827
+ FROM sqlite_master
27828
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
27829
+ UNION ALL
27830
+ SELECT sql
27831
+ FROM sqlite_temp_master
27832
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
27833
+ 
27834
+  (0.3ms)  SELECT sql
27835
+ FROM sqlite_master
27836
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
27837
+ UNION ALL
27838
+ SELECT sql
27839
+ FROM sqlite_temp_master
27840
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
27841
+ 
27842
+  (0.3ms)  SELECT sql
27843
+ FROM sqlite_master
27844
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
27845
+ UNION ALL
27846
+ SELECT sql
27847
+ FROM sqlite_temp_master
27848
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
27849
+ 
27850
+  (0.3ms)  SELECT sql
27851
+ FROM sqlite_master
27852
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
27853
+ UNION ALL
27854
+ SELECT sql
27855
+ FROM sqlite_temp_master
27856
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
27857
+ 
27858
+  (0.3ms)  SELECT sql
27859
+ FROM sqlite_master
27860
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
27861
+ UNION ALL
27862
+ SELECT sql
27863
+ FROM sqlite_temp_master
27864
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
27865
+ 
27866
+  (0.3ms)  SELECT sql
27867
+ FROM sqlite_master
27868
+ WHERE name='index_spree_orders_on_number' AND type='index'
27869
+ UNION ALL
27870
+ SELECT sql
27871
+ FROM sqlite_temp_master
27872
+ WHERE name='index_spree_orders_on_number' AND type='index'
27873
+ 
27874
+  (0.3ms) SELECT "spree_orders"."number" FROM "spree_orders" GROUP BY "spree_orders"."number" HAVING (sum(1) > 1)
27875
+ Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE 1=0 ORDER BY "spree_orders"."id" ASC LIMIT ? [["LIMIT", 1000]]
27876
+  (0.2ms)  SELECT sql
27877
+ FROM sqlite_master
27878
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
27879
+ UNION ALL
27880
+ SELECT sql
27881
+ FROM sqlite_temp_master
27882
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
27883
+ 
27884
+  (0.2ms)  SELECT sql
27885
+ FROM sqlite_master
27886
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
27887
+ UNION ALL
27888
+ SELECT sql
27889
+ FROM sqlite_temp_master
27890
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
27891
+ 
27892
+  (0.2ms)  SELECT sql
27893
+ FROM sqlite_master
27894
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
27895
+ UNION ALL
27896
+ SELECT sql
27897
+ FROM sqlite_temp_master
27898
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
27899
+ 
27900
+  (0.2ms)  SELECT sql
27901
+ FROM sqlite_master
27902
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
27903
+ UNION ALL
27904
+ SELECT sql
27905
+ FROM sqlite_temp_master
27906
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
27907
+ 
27908
+  (0.2ms)  SELECT sql
27909
+ FROM sqlite_master
27910
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
27911
+ UNION ALL
27912
+ SELECT sql
27913
+ FROM sqlite_temp_master
27914
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
27915
+ 
27916
+  (0.2ms)  SELECT sql
27917
+ FROM sqlite_master
27918
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
27919
+ UNION ALL
27920
+ SELECT sql
27921
+ FROM sqlite_temp_master
27922
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
27923
+ 
27924
+  (0.2ms)  SELECT sql
27925
+ FROM sqlite_master
27926
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
27927
+ UNION ALL
27928
+ SELECT sql
27929
+ FROM sqlite_temp_master
27930
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
27931
+ 
27932
+  (0.2ms)  SELECT sql
27933
+ FROM sqlite_master
27934
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
27935
+ UNION ALL
27936
+ SELECT sql
27937
+ FROM sqlite_temp_master
27938
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
27939
+ 
27940
+  (0.2ms)  SELECT sql
27941
+ FROM sqlite_master
27942
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
27943
+ UNION ALL
27944
+ SELECT sql
27945
+ FROM sqlite_temp_master
27946
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
27947
+ 
27948
+  (0.2ms)  SELECT sql
27949
+ FROM sqlite_master
27950
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
27951
+ UNION ALL
27952
+ SELECT sql
27953
+ FROM sqlite_temp_master
27954
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
27955
+ 
27956
+  (0.2ms)  SELECT sql
27957
+ FROM sqlite_master
27958
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
27959
+ UNION ALL
27960
+ SELECT sql
27961
+ FROM sqlite_temp_master
27962
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
27963
+ 
27964
+  (0.2ms)  SELECT sql
27965
+ FROM sqlite_master
27966
+ WHERE name='index_spree_orders_on_number' AND type='index'
27967
+ UNION ALL
27968
+ SELECT sql
27969
+ FROM sqlite_temp_master
27970
+ WHERE name='index_spree_orders_on_number' AND type='index'
27971
+ 
27972
+  (0.2ms)  SELECT sql
27973
+ FROM sqlite_master
27974
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
27975
+ UNION ALL
27976
+ SELECT sql
27977
+ FROM sqlite_temp_master
27978
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
27979
+ 
27980
+  (0.2ms)  SELECT sql
27981
+ FROM sqlite_master
27982
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
27983
+ UNION ALL
27984
+ SELECT sql
27985
+ FROM sqlite_temp_master
27986
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
27987
+ 
27988
+  (0.2ms)  SELECT sql
27989
+ FROM sqlite_master
27990
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
27991
+ UNION ALL
27992
+ SELECT sql
27993
+ FROM sqlite_temp_master
27994
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
27995
+ 
27996
+  (0.2ms)  SELECT sql
27997
+ FROM sqlite_master
27998
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
27999
+ UNION ALL
28000
+ SELECT sql
28001
+ FROM sqlite_temp_master
28002
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
28003
+ 
28004
+  (0.2ms)  SELECT sql
28005
+ FROM sqlite_master
28006
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
28007
+ UNION ALL
28008
+ SELECT sql
28009
+ FROM sqlite_temp_master
28010
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
28011
+ 
28012
+  (0.2ms)  SELECT sql
28013
+ FROM sqlite_master
28014
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
28015
+ UNION ALL
28016
+ SELECT sql
28017
+ FROM sqlite_temp_master
28018
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
28019
+ 
28020
+  (0.2ms)  SELECT sql
28021
+ FROM sqlite_master
28022
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
28023
+ UNION ALL
28024
+ SELECT sql
28025
+ FROM sqlite_temp_master
28026
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
28027
+ 
28028
+  (0.2ms)  SELECT sql
28029
+ FROM sqlite_master
28030
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
28031
+ UNION ALL
28032
+ SELECT sql
28033
+ FROM sqlite_temp_master
28034
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
28035
+ 
28036
+  (0.2ms)  SELECT sql
28037
+ FROM sqlite_master
28038
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
28039
+ UNION ALL
28040
+ SELECT sql
28041
+ FROM sqlite_temp_master
28042
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
28043
+ 
28044
+  (0.2ms)  SELECT sql
28045
+ FROM sqlite_master
28046
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
28047
+ UNION ALL
28048
+ SELECT sql
28049
+ FROM sqlite_temp_master
28050
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
28051
+ 
28052
+  (0.2ms)  SELECT sql
28053
+ FROM sqlite_master
28054
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
28055
+ UNION ALL
28056
+ SELECT sql
28057
+ FROM sqlite_temp_master
28058
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
28059
+ 
28060
+  (0.2ms)  SELECT sql
28061
+ FROM sqlite_master
28062
+ WHERE name='index_spree_orders_on_number' AND type='index'
28063
+ UNION ALL
28064
+ SELECT sql
28065
+ FROM sqlite_temp_master
28066
+ WHERE name='index_spree_orders_on_number' AND type='index'
28067
+ 
28068
+  (0.4ms) DROP INDEX "index_spree_orders_on_number"
28069
+  (0.2ms)  SELECT sql
28070
+ FROM sqlite_master
28071
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
28072
+ UNION ALL
28073
+ SELECT sql
28074
+ FROM sqlite_temp_master
28075
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
28076
+ 
28077
+  (0.2ms)  SELECT sql
28078
+ FROM sqlite_master
28079
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
28080
+ UNION ALL
28081
+ SELECT sql
28082
+ FROM sqlite_temp_master
28083
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
28084
+ 
28085
+  (0.2ms)  SELECT sql
28086
+ FROM sqlite_master
28087
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
28088
+ UNION ALL
28089
+ SELECT sql
28090
+ FROM sqlite_temp_master
28091
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
28092
+ 
28093
+  (0.2ms)  SELECT sql
28094
+ FROM sqlite_master
28095
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
28096
+ UNION ALL
28097
+ SELECT sql
28098
+ FROM sqlite_temp_master
28099
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
28100
+ 
28101
+  (0.2ms)  SELECT sql
28102
+ FROM sqlite_master
28103
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
28104
+ UNION ALL
28105
+ SELECT sql
28106
+ FROM sqlite_temp_master
28107
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
28108
+ 
28109
+  (0.2ms)  SELECT sql
28110
+ FROM sqlite_master
28111
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
28112
+ UNION ALL
28113
+ SELECT sql
28114
+ FROM sqlite_temp_master
28115
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
28116
+ 
28117
+  (0.2ms)  SELECT sql
28118
+ FROM sqlite_master
28119
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
28120
+ UNION ALL
28121
+ SELECT sql
28122
+ FROM sqlite_temp_master
28123
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
28124
+ 
28125
+  (0.2ms)  SELECT sql
28126
+ FROM sqlite_master
28127
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
28128
+ UNION ALL
28129
+ SELECT sql
28130
+ FROM sqlite_temp_master
28131
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
28132
+ 
28133
+  (0.2ms)  SELECT sql
28134
+ FROM sqlite_master
28135
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
28136
+ UNION ALL
28137
+ SELECT sql
28138
+ FROM sqlite_temp_master
28139
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
28140
+ 
28141
+  (0.2ms)  SELECT sql
28142
+ FROM sqlite_master
28143
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
28144
+ UNION ALL
28145
+ SELECT sql
28146
+ FROM sqlite_temp_master
28147
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
28148
+ 
28149
+  (0.2ms)  SELECT sql
28150
+ FROM sqlite_master
28151
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
28152
+ UNION ALL
28153
+ SELECT sql
28154
+ FROM sqlite_temp_master
28155
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
28156
+ 
28157
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")
28158
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191807"]]
28159
+  (109.6ms) commit transaction
28160
+ Migrating to AddUniqueIndexOnNumberToSpreeStockTransfer (20180516191808)
28161
+  (0.1ms) begin transaction
28162
+  (0.6ms)  SELECT sql
28163
+ FROM sqlite_master
28164
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28165
+ UNION ALL
28166
+ SELECT sql
28167
+ FROM sqlite_temp_master
28168
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28169
+ 
28170
+  (0.4ms)  SELECT sql
28171
+ FROM sqlite_master
28172
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28173
+ UNION ALL
28174
+ SELECT sql
28175
+ FROM sqlite_temp_master
28176
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28177
+ 
28178
+  (0.2ms)  SELECT sql
28179
+ FROM sqlite_master
28180
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
28181
+ UNION ALL
28182
+ SELECT sql
28183
+ FROM sqlite_temp_master
28184
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
28185
+ 
28186
+  (0.2ms) SELECT "spree_stock_transfers"."number" FROM "spree_stock_transfers" GROUP BY "spree_stock_transfers"."number" HAVING (sum(1) > 1)
28187
+ Spree::StockTransfer Load (0.3ms) SELECT "spree_stock_transfers".* FROM "spree_stock_transfers" WHERE 1=0 ORDER BY "spree_stock_transfers"."id" ASC LIMIT ? [["LIMIT", 1000]]
28188
+  (0.3ms)  SELECT sql
28189
+ FROM sqlite_master
28190
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28191
+ UNION ALL
28192
+ SELECT sql
28193
+ FROM sqlite_temp_master
28194
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28195
+ 
28196
+  (0.2ms)  SELECT sql
28197
+ FROM sqlite_master
28198
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28199
+ UNION ALL
28200
+ SELECT sql
28201
+ FROM sqlite_temp_master
28202
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28203
+ 
28204
+  (0.2ms)  SELECT sql
28205
+ FROM sqlite_master
28206
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
28207
+ UNION ALL
28208
+ SELECT sql
28209
+ FROM sqlite_temp_master
28210
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
28211
+ 
28212
+  (0.2ms)  SELECT sql
28213
+ FROM sqlite_master
28214
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28215
+ UNION ALL
28216
+ SELECT sql
28217
+ FROM sqlite_temp_master
28218
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28219
+ 
28220
+  (0.2ms)  SELECT sql
28221
+ FROM sqlite_master
28222
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28223
+ UNION ALL
28224
+ SELECT sql
28225
+ FROM sqlite_temp_master
28226
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28227
+ 
28228
+  (0.2ms)  SELECT sql
28229
+ FROM sqlite_master
28230
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
28231
+ UNION ALL
28232
+ SELECT sql
28233
+ FROM sqlite_temp_master
28234
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
28235
+ 
28236
+  (0.4ms) DROP INDEX "index_spree_stock_transfers_on_number"
28237
+  (0.2ms)  SELECT sql
28238
+ FROM sqlite_master
28239
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28240
+ UNION ALL
28241
+ SELECT sql
28242
+ FROM sqlite_temp_master
28243
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
28244
+ 
28245
+  (0.2ms)  SELECT sql
28246
+ FROM sqlite_master
28247
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28248
+ UNION ALL
28249
+ SELECT sql
28250
+ FROM sqlite_temp_master
28251
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
28252
+ 
28253
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_stock_transfers_on_number" ON "spree_stock_transfers" ("number")
28254
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191808"]]
28255
+  (131.9ms) commit transaction
28256
+ Migrating to AddUniqueIndexOnNumberToSpreeShipment (20180516191809)
28257
+  (0.1ms) begin transaction
28258
+  (0.5ms)  SELECT sql
28259
+ FROM sqlite_master
28260
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28261
+ UNION ALL
28262
+ SELECT sql
28263
+ FROM sqlite_temp_master
28264
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28265
+ 
28266
+  (0.4ms)  SELECT sql
28267
+ FROM sqlite_master
28268
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28269
+ UNION ALL
28270
+ SELECT sql
28271
+ FROM sqlite_temp_master
28272
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28273
+ 
28274
+  (0.3ms)  SELECT sql
28275
+ FROM sqlite_master
28276
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28277
+ UNION ALL
28278
+ SELECT sql
28279
+ FROM sqlite_temp_master
28280
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28281
+ 
28282
+  (0.2ms)  SELECT sql
28283
+ FROM sqlite_master
28284
+ WHERE name='index_shipments_on_number' AND type='index'
28285
+ UNION ALL
28286
+ SELECT sql
28287
+ FROM sqlite_temp_master
28288
+ WHERE name='index_shipments_on_number' AND type='index'
28289
+ 
28290
+  (0.3ms) SELECT "spree_shipments"."number" FROM "spree_shipments" GROUP BY "spree_shipments"."number" HAVING (sum(1) > 1)
28291
+ Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE 1=0 ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]]
28292
+  (0.2ms)  SELECT sql
28293
+ FROM sqlite_master
28294
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28295
+ UNION ALL
28296
+ SELECT sql
28297
+ FROM sqlite_temp_master
28298
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28299
+ 
28300
+  (0.2ms)  SELECT sql
28301
+ FROM sqlite_master
28302
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28303
+ UNION ALL
28304
+ SELECT sql
28305
+ FROM sqlite_temp_master
28306
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28307
+ 
28308
+  (0.2ms)  SELECT sql
28309
+ FROM sqlite_master
28310
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28311
+ UNION ALL
28312
+ SELECT sql
28313
+ FROM sqlite_temp_master
28314
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28315
+ 
28316
+  (0.2ms)  SELECT sql
28317
+ FROM sqlite_master
28318
+ WHERE name='index_shipments_on_number' AND type='index'
28319
+ UNION ALL
28320
+ SELECT sql
28321
+ FROM sqlite_temp_master
28322
+ WHERE name='index_shipments_on_number' AND type='index'
28323
+ 
28324
+  (0.2ms)  SELECT sql
28325
+ FROM sqlite_master
28326
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28327
+ UNION ALL
28328
+ SELECT sql
28329
+ FROM sqlite_temp_master
28330
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28331
+ 
28332
+  (0.2ms)  SELECT sql
28333
+ FROM sqlite_master
28334
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28335
+ UNION ALL
28336
+ SELECT sql
28337
+ FROM sqlite_temp_master
28338
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28339
+ 
28340
+  (0.2ms)  SELECT sql
28341
+ FROM sqlite_master
28342
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28343
+ UNION ALL
28344
+ SELECT sql
28345
+ FROM sqlite_temp_master
28346
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28347
+ 
28348
+  (0.2ms)  SELECT sql
28349
+ FROM sqlite_master
28350
+ WHERE name='index_shipments_on_number' AND type='index'
28351
+ UNION ALL
28352
+ SELECT sql
28353
+ FROM sqlite_temp_master
28354
+ WHERE name='index_shipments_on_number' AND type='index'
28355
+ 
28356
+  (0.3ms) DROP INDEX "index_shipments_on_number"
28357
+  (0.2ms)  SELECT sql
28358
+ FROM sqlite_master
28359
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28360
+ UNION ALL
28361
+ SELECT sql
28362
+ FROM sqlite_temp_master
28363
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
28364
+ 
28365
+  (0.2ms)  SELECT sql
28366
+ FROM sqlite_master
28367
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28368
+ UNION ALL
28369
+ SELECT sql
28370
+ FROM sqlite_temp_master
28371
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
28372
+ 
28373
+  (0.2ms)  SELECT sql
28374
+ FROM sqlite_master
28375
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28376
+ UNION ALL
28377
+ SELECT sql
28378
+ FROM sqlite_temp_master
28379
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
28380
+ 
28381
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_shipments_on_number" ON "spree_shipments" ("number")
28382
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191809"]]
28383
+  (110.3ms) commit transaction
28384
+ Migrating to AddUniqueIndexOnNumberToSpreePayments (20180516191810)
28385
+  (0.1ms) begin transaction
28386
+  (0.5ms)  SELECT sql
28387
+ FROM sqlite_master
28388
+ WHERE name='index_spree_payments_on_number' AND type='index'
28389
+ UNION ALL
28390
+ SELECT sql
28391
+ FROM sqlite_temp_master
28392
+ WHERE name='index_spree_payments_on_number' AND type='index'
28393
+ 
28394
+  (0.4ms)  SELECT sql
28395
+ FROM sqlite_master
28396
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28397
+ UNION ALL
28398
+ SELECT sql
28399
+ FROM sqlite_temp_master
28400
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28401
+ 
28402
+  (0.5ms)  SELECT sql
28403
+ FROM sqlite_master
28404
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28405
+ UNION ALL
28406
+ SELECT sql
28407
+ FROM sqlite_temp_master
28408
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28409
+ 
28410
+  (0.2ms)  SELECT sql
28411
+ FROM sqlite_master
28412
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28413
+ UNION ALL
28414
+ SELECT sql
28415
+ FROM sqlite_temp_master
28416
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28417
+ 
28418
+  (0.2ms) SELECT "spree_payments"."number" FROM "spree_payments" GROUP BY "spree_payments"."number" HAVING (sum(1) > 1)
28419
+ Scoped order is ignored, it's forced to be batch order.
28420
+ Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE 1=0 ORDER BY "spree_payments"."id" ASC LIMIT ? [["LIMIT", 1000]]
28421
+  (0.2ms)  SELECT sql
28422
+ FROM sqlite_master
28423
+ WHERE name='index_spree_payments_on_number' AND type='index'
28424
+ UNION ALL
28425
+ SELECT sql
28426
+ FROM sqlite_temp_master
28427
+ WHERE name='index_spree_payments_on_number' AND type='index'
28428
+ 
28429
+  (0.3ms)  SELECT sql
28430
+ FROM sqlite_master
28431
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28432
+ UNION ALL
28433
+ SELECT sql
28434
+ FROM sqlite_temp_master
28435
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28436
+ 
28437
+  (0.4ms)  SELECT sql
28438
+ FROM sqlite_master
28439
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28440
+ UNION ALL
28441
+ SELECT sql
28442
+ FROM sqlite_temp_master
28443
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28444
+ 
28445
+  (1.4ms)  SELECT sql
28446
+ FROM sqlite_master
28447
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28448
+ UNION ALL
28449
+ SELECT sql
28450
+ FROM sqlite_temp_master
28451
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28452
+ 
28453
+  (0.3ms)  SELECT sql
28454
+ FROM sqlite_master
28455
+ WHERE name='index_spree_payments_on_number' AND type='index'
28456
+ UNION ALL
28457
+ SELECT sql
28458
+ FROM sqlite_temp_master
28459
+ WHERE name='index_spree_payments_on_number' AND type='index'
28460
+ 
28461
+  (0.3ms)  SELECT sql
28462
+ FROM sqlite_master
28463
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28464
+ UNION ALL
28465
+ SELECT sql
28466
+ FROM sqlite_temp_master
28467
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28468
+ 
28469
+  (0.2ms)  SELECT sql
28470
+ FROM sqlite_master
28471
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28472
+ UNION ALL
28473
+ SELECT sql
28474
+ FROM sqlite_temp_master
28475
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28476
+ 
28477
+  (0.2ms)  SELECT sql
28478
+ FROM sqlite_master
28479
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28480
+ UNION ALL
28481
+ SELECT sql
28482
+ FROM sqlite_temp_master
28483
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28484
+ 
28485
+  (0.3ms) DROP INDEX "index_spree_payments_on_number"
28486
+  (0.2ms)  SELECT sql
28487
+ FROM sqlite_master
28488
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28489
+ UNION ALL
28490
+ SELECT sql
28491
+ FROM sqlite_temp_master
28492
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
28493
+ 
28494
+  (0.2ms)  SELECT sql
28495
+ FROM sqlite_master
28496
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28497
+ UNION ALL
28498
+ SELECT sql
28499
+ FROM sqlite_temp_master
28500
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
28501
+ 
28502
+  (0.2ms)  SELECT sql
28503
+ FROM sqlite_master
28504
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28505
+ UNION ALL
28506
+ SELECT sql
28507
+ FROM sqlite_temp_master
28508
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
28509
+ 
28510
+  (7.8ms) CREATE UNIQUE INDEX "index_spree_payments_on_number" ON "spree_payments" ("number")
28511
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191810"]]
28512
+  (112.7ms) commit transaction
28513
+ Migrating to AddUniqueIndexOnNumberToSpreeReturnAuthorizations (20180516191811)
28514
+  (0.1ms) begin transaction
28515
+  (0.5ms)  SELECT sql
28516
+ FROM sqlite_master
28517
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
28518
+ UNION ALL
28519
+ SELECT sql
28520
+ FROM sqlite_temp_master
28521
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
28522
+ 
28523
+  (0.2ms) SELECT "spree_return_authorizations"."number" FROM "spree_return_authorizations" GROUP BY "spree_return_authorizations"."number" HAVING (sum(1) > 1)
28524
+ Spree::ReturnAuthorization Load (0.1ms) SELECT "spree_return_authorizations".* FROM "spree_return_authorizations" WHERE 1=0 ORDER BY "spree_return_authorizations"."id" ASC LIMIT ? [["LIMIT", 1000]]
28525
+  (0.2ms)  SELECT sql
28526
+ FROM sqlite_master
28527
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
28528
+ UNION ALL
28529
+ SELECT sql
28530
+ FROM sqlite_temp_master
28531
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
28532
+ 
28533
+  (0.2ms)  SELECT sql
28534
+ FROM sqlite_master
28535
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
28536
+ UNION ALL
28537
+ SELECT sql
28538
+ FROM sqlite_temp_master
28539
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
28540
+ 
28541
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_return_authorizations_on_number" ON "spree_return_authorizations" ("number")
28542
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191811"]]
28543
+  (176.3ms) commit transaction
28544
+ Migrating to AddUniqueIndexOnNumberToSpreeCustomerReturns (20180516191812)
28545
+  (0.2ms) begin transaction
28546
+  (0.1ms) SELECT "spree_customer_returns"."number" FROM "spree_customer_returns" GROUP BY "spree_customer_returns"."number" HAVING (sum(1) > 1)
28547
+ Spree::CustomerReturn Load (0.1ms) SELECT "spree_customer_returns".* FROM "spree_customer_returns" WHERE 1=0 ORDER BY "spree_customer_returns"."id" ASC LIMIT ? [["LIMIT", 1000]]
28548
+  (0.5ms) CREATE UNIQUE INDEX "index_spree_customer_returns_on_number" ON "spree_customer_returns" ("number")
28549
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191812"]]
28550
+  (134.4ms) commit transaction
28551
+ Migrating to AddUniqueIndexOnNumberToSpreeReimbursements (20180516191813)
28552
+  (0.2ms) begin transaction
28553
+  (0.5ms)  SELECT sql
28554
+ FROM sqlite_master
28555
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
28556
+ UNION ALL
28557
+ SELECT sql
28558
+ FROM sqlite_temp_master
28559
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
28560
+ 
28561
+  (0.4ms)  SELECT sql
28562
+ FROM sqlite_master
28563
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
28564
+ UNION ALL
28565
+ SELECT sql
28566
+ FROM sqlite_temp_master
28567
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
28568
+ 
28569
+  (0.1ms) SELECT "spree_reimbursements"."number" FROM "spree_reimbursements" GROUP BY "spree_reimbursements"."number" HAVING (sum(1) > 1)
28570
+ Spree::Reimbursement Load (0.1ms) SELECT "spree_reimbursements".* FROM "spree_reimbursements" WHERE 1=0 ORDER BY "spree_reimbursements"."id" ASC LIMIT ? [["LIMIT", 1000]]
28571
+  (0.2ms)  SELECT sql
28572
+ FROM sqlite_master
28573
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
28574
+ UNION ALL
28575
+ SELECT sql
28576
+ FROM sqlite_temp_master
28577
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
28578
+ 
28579
+  (0.2ms)  SELECT sql
28580
+ FROM sqlite_master
28581
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
28582
+ UNION ALL
28583
+ SELECT sql
28584
+ FROM sqlite_temp_master
28585
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
28586
+ 
28587
+  (0.2ms)  SELECT sql
28588
+ FROM sqlite_master
28589
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
28590
+ UNION ALL
28591
+ SELECT sql
28592
+ FROM sqlite_temp_master
28593
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
28594
+ 
28595
+  (0.2ms)  SELECT sql
28596
+ FROM sqlite_master
28597
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
28598
+ UNION ALL
28599
+ SELECT sql
28600
+ FROM sqlite_temp_master
28601
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
28602
+ 
28603
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_reimbursements_on_number" ON "spree_reimbursements" ("number")
28604
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191813"]]
28605
+  (142.0ms) commit transaction
28606
+ Migrating to AddMissingUniqueIndexesForUniqueAttributes (20180516191814)
28607
+  (0.2ms) begin transaction
28608
+  (0.2ms) SELECT "spree_countries"."name" FROM "spree_countries" GROUP BY "spree_countries"."name" HAVING (sum(1) > 1)
28609
+ Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE (1=0 OR "spree_countries"."name" IS NULL) ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1000]]
28610
+  (0.5ms) CREATE UNIQUE INDEX "index_spree_countries_on_name" ON "spree_countries" ("name")
28611
+  (0.2ms)  SELECT sql
28612
+ FROM sqlite_master
28613
+ WHERE name='index_spree_countries_on_name' AND type='index'
28614
+ UNION ALL
28615
+ SELECT sql
28616
+ FROM sqlite_temp_master
28617
+ WHERE name='index_spree_countries_on_name' AND type='index'
28618
+ 
28619
+  (0.1ms) SELECT "spree_countries"."iso_name" FROM "spree_countries" GROUP BY "spree_countries"."iso_name" HAVING (sum(1) > 1)
28620
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE (1=0 OR "spree_countries"."iso_name" IS NULL) ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1000]]
28621
+  (0.2ms)  SELECT sql
28622
+ FROM sqlite_master
28623
+ WHERE name='index_spree_countries_on_name' AND type='index'
28624
+ UNION ALL
28625
+ SELECT sql
28626
+ FROM sqlite_temp_master
28627
+ WHERE name='index_spree_countries_on_name' AND type='index'
28628
+ 
28629
+  (0.4ms)  SELECT sql
28630
+ FROM sqlite_master
28631
+ WHERE name='index_spree_countries_on_name' AND type='index'
28632
+ UNION ALL
28633
+ SELECT sql
28634
+ FROM sqlite_temp_master
28635
+ WHERE name='index_spree_countries_on_name' AND type='index'
28636
+ 
28637
+  (0.9ms) CREATE UNIQUE INDEX "index_spree_countries_on_iso_name" ON "spree_countries" ("iso_name")
28638
+  (0.2ms) SELECT "spree_refund_reasons"."name" FROM "spree_refund_reasons" GROUP BY "spree_refund_reasons"."name" HAVING (sum(1) > 1)
28639
+ Scoped order is ignored, it's forced to be batch order.
28640
+ Spree::RefundReason Load (0.2ms) SELECT "spree_refund_reasons".* FROM "spree_refund_reasons" WHERE (1=0 OR "spree_refund_reasons"."name" IS NULL) ORDER BY "spree_refund_reasons"."id" ASC LIMIT ? [["LIMIT", 1000]]
28641
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_refund_reasons_on_name" ON "spree_refund_reasons" ("name")
28642
+  (0.2ms)  SELECT sql
28643
+ FROM sqlite_master
28644
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
28645
+ UNION ALL
28646
+ SELECT sql
28647
+ FROM sqlite_temp_master
28648
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
28649
+ 
28650
+  (0.2ms) SELECT "spree_reimbursement_types"."name" FROM "spree_reimbursement_types" GROUP BY "spree_reimbursement_types"."name" HAVING (sum(1) > 1)
28651
+ Scoped order is ignored, it's forced to be batch order.
28652
+ Spree::ReimbursementType Load (0.2ms) SELECT "spree_reimbursement_types".* FROM "spree_reimbursement_types" WHERE (1=0 OR "spree_reimbursement_types"."name" IS NULL) ORDER BY "spree_reimbursement_types"."id" ASC LIMIT ? [["LIMIT", 1000]]
28653
+  (0.2ms)  SELECT sql
28654
+ FROM sqlite_master
28655
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
28656
+ UNION ALL
28657
+ SELECT sql
28658
+ FROM sqlite_temp_master
28659
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
28660
+ 
28661
+  (0.2ms)  SELECT sql
28662
+ FROM sqlite_master
28663
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
28664
+ UNION ALL
28665
+ SELECT sql
28666
+ FROM sqlite_temp_master
28667
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
28668
+ 
28669
+  (0.3ms) CREATE UNIQUE INDEX "index_spree_reimbursement_types_on_name" ON "spree_reimbursement_types" ("name")
28670
+  (0.1ms) SELECT "spree_return_authorization_reasons"."name" FROM "spree_return_authorization_reasons" GROUP BY "spree_return_authorization_reasons"."name" HAVING (sum(1) > 1)
28671
+ Scoped order is ignored, it's forced to be batch order.
28672
+ Spree::ReturnAuthorizationReason Load (0.2ms) SELECT "spree_return_authorization_reasons".* FROM "spree_return_authorization_reasons" WHERE (1=0 OR "spree_return_authorization_reasons"."name" IS NULL) ORDER BY "spree_return_authorization_reasons"."id" ASC LIMIT ? [["LIMIT", 1000]]
28673
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_return_authorization_reasons_on_name" ON "spree_return_authorization_reasons" ("name")
28674
+  (0.3ms)  SELECT sql
28675
+ FROM sqlite_master
28676
+ WHERE name='index_spree_roles_on_name' AND type='index'
28677
+ UNION ALL
28678
+ SELECT sql
28679
+ FROM sqlite_temp_master
28680
+ WHERE name='index_spree_roles_on_name' AND type='index'
28681
+ 
28682
+  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" GROUP BY "spree_roles"."name" HAVING (sum(1) > 1)
28683
+ Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" WHERE (1=0 OR "spree_roles"."name" IS NULL) ORDER BY "spree_roles"."id" ASC LIMIT ? [["LIMIT", 1000]]
28684
+  (0.2ms)  SELECT sql
28685
+ FROM sqlite_master
28686
+ WHERE name='index_spree_roles_on_name' AND type='index'
28687
+ UNION ALL
28688
+ SELECT sql
28689
+ FROM sqlite_temp_master
28690
+ WHERE name='index_spree_roles_on_name' AND type='index'
28691
+ 
28692
+  (0.2ms)  SELECT sql
28693
+ FROM sqlite_master
28694
+ WHERE name='index_spree_roles_on_name' AND type='index'
28695
+ UNION ALL
28696
+ SELECT sql
28697
+ FROM sqlite_temp_master
28698
+ WHERE name='index_spree_roles_on_name' AND type='index'
28699
+ 
28700
+  (0.2ms) DROP INDEX "index_spree_roles_on_name"
28701
+  (0.3ms) CREATE UNIQUE INDEX "index_spree_roles_on_name" ON "spree_roles" ("name")
28702
+  (0.2ms)  SELECT sql
28703
+ FROM sqlite_master
28704
+ WHERE name='index_spree_stores_on_url' AND type='index'
28705
+ UNION ALL
28706
+ SELECT sql
28707
+ FROM sqlite_temp_master
28708
+ WHERE name='index_spree_stores_on_url' AND type='index'
28709
+ 
28710
+  (0.2ms)  SELECT sql
28711
+ FROM sqlite_master
28712
+ WHERE name='index_spree_stores_on_default' AND type='index'
28713
+ UNION ALL
28714
+ SELECT sql
28715
+ FROM sqlite_temp_master
28716
+ WHERE name='index_spree_stores_on_default' AND type='index'
28717
+ 
28718
+  (0.2ms)  SELECT sql
28719
+ FROM sqlite_master
28720
+ WHERE name='index_spree_stores_on_code' AND type='index'
28721
+ UNION ALL
28722
+ SELECT sql
28723
+ FROM sqlite_temp_master
28724
+ WHERE name='index_spree_stores_on_code' AND type='index'
28725
+ 
28726
+  (0.1ms) SELECT "spree_stores"."code" FROM "spree_stores" GROUP BY "spree_stores"."code" HAVING (sum(1) > 1)
28727
+ Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (1=0 OR "spree_stores"."code" IS NULL) ORDER BY "spree_stores"."id" ASC LIMIT ? [["LIMIT", 1000]]
28728
+  (0.2ms)  SELECT sql
28729
+ FROM sqlite_master
28730
+ WHERE name='index_spree_stores_on_url' AND type='index'
28731
+ UNION ALL
28732
+ SELECT sql
28733
+ FROM sqlite_temp_master
28734
+ WHERE name='index_spree_stores_on_url' AND type='index'
28735
+ 
28736
+  (0.2ms)  SELECT sql
28737
+ FROM sqlite_master
28738
+ WHERE name='index_spree_stores_on_default' AND type='index'
28739
+ UNION ALL
28740
+ SELECT sql
28741
+ FROM sqlite_temp_master
28742
+ WHERE name='index_spree_stores_on_default' AND type='index'
28743
+ 
28744
+  (0.2ms)  SELECT sql
28745
+ FROM sqlite_master
28746
+ WHERE name='index_spree_stores_on_code' AND type='index'
28747
+ UNION ALL
28748
+ SELECT sql
28749
+ FROM sqlite_temp_master
28750
+ WHERE name='index_spree_stores_on_code' AND type='index'
28751
+ 
28752
+  (0.2ms)  SELECT sql
28753
+ FROM sqlite_master
28754
+ WHERE name='index_spree_stores_on_url' AND type='index'
28755
+ UNION ALL
28756
+ SELECT sql
28757
+ FROM sqlite_temp_master
28758
+ WHERE name='index_spree_stores_on_url' AND type='index'
28759
+ 
28760
+  (0.2ms)  SELECT sql
28761
+ FROM sqlite_master
28762
+ WHERE name='index_spree_stores_on_default' AND type='index'
28763
+ UNION ALL
28764
+ SELECT sql
28765
+ FROM sqlite_temp_master
28766
+ WHERE name='index_spree_stores_on_default' AND type='index'
28767
+ 
28768
+  (0.2ms)  SELECT sql
28769
+ FROM sqlite_master
28770
+ WHERE name='index_spree_stores_on_code' AND type='index'
28771
+ UNION ALL
28772
+ SELECT sql
28773
+ FROM sqlite_temp_master
28774
+ WHERE name='index_spree_stores_on_code' AND type='index'
28775
+ 
28776
+  (0.2ms) DROP INDEX "index_spree_stores_on_code"
28777
+  (0.2ms)  SELECT sql
28778
+ FROM sqlite_master
28779
+ WHERE name='index_spree_stores_on_url' AND type='index'
28780
+ UNION ALL
28781
+ SELECT sql
28782
+ FROM sqlite_temp_master
28783
+ WHERE name='index_spree_stores_on_url' AND type='index'
28784
+ 
28785
+  (0.2ms)  SELECT sql
28786
+ FROM sqlite_master
28787
+ WHERE name='index_spree_stores_on_default' AND type='index'
28788
+ UNION ALL
28789
+ SELECT sql
28790
+ FROM sqlite_temp_master
28791
+ WHERE name='index_spree_stores_on_default' AND type='index'
28792
+ 
28793
+  (0.4ms) CREATE UNIQUE INDEX "index_spree_stores_on_code" ON "spree_stores" ("code")
28794
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191814"]]
28795
+  (179.8ms) commit transaction
28796
+ Migrating to AddIndexOnStockLocationToSpreeCustomerReturns (20180516191815)
28797
+  (0.1ms) begin transaction
28798
+  (0.2ms)  SELECT sql
28799
+ FROM sqlite_master
28800
+ WHERE name='index_spree_customer_returns_on_number' AND type='index'
28801
+ UNION ALL
28802
+ SELECT sql
28803
+ FROM sqlite_temp_master
28804
+ WHERE name='index_spree_customer_returns_on_number' AND type='index'
28805
+ 
28806
+  (0.4ms) CREATE INDEX "index_spree_customer_returns_on_stock_location_id" ON "spree_customer_returns" ("stock_location_id")
28807
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191815"]]
28808
+  (129.1ms) commit transaction
28809
+ Migrating to AddIndexOnPrototypeToSpreeOptionTypePrototype (20180516191816)
28810
+  (0.3ms) begin transaction
28811
+  (0.2ms) SELECT COUNT(*) AS count_all, "spree_option_type_prototypes"."prototype_id" AS spree_option_type_prototypes_prototype_id, "spree_option_type_prototypes"."option_type_id" AS spree_option_type_prototypes_option_type_id FROM "spree_option_type_prototypes" GROUP BY "spree_option_type_prototypes"."prototype_id", "spree_option_type_prototypes"."option_type_id" HAVING (sum(1) > 1)
28812
+  (0.2ms)  SELECT sql
28813
+ FROM sqlite_master
28814
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28815
+ UNION ALL
28816
+ SELECT sql
28817
+ FROM sqlite_temp_master
28818
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28819
+ 
28820
+  (0.2ms)  SELECT sql
28821
+ FROM sqlite_master
28822
+ WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'
28823
+ UNION ALL
28824
+ SELECT sql
28825
+ FROM sqlite_temp_master
28826
+ WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'
28827
+ 
28828
+  (0.2ms)  SELECT sql
28829
+ FROM sqlite_master
28830
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28831
+ UNION ALL
28832
+ SELECT sql
28833
+ FROM sqlite_temp_master
28834
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28835
+ 
28836
+  (0.2ms)  SELECT sql
28837
+ FROM sqlite_master
28838
+ WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'
28839
+ UNION ALL
28840
+ SELECT sql
28841
+ FROM sqlite_temp_master
28842
+ WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'
28843
+ 
28844
+  (0.4ms) DROP INDEX "index_option_types_prototypes_on_prototype_and_option_type"
28845
+  (0.2ms)  SELECT sql
28846
+ FROM sqlite_master
28847
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28848
+ UNION ALL
28849
+ SELECT sql
28850
+ FROM sqlite_temp_master
28851
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28852
+ 
28853
+  (0.4ms) CREATE UNIQUE INDEX "spree_option_type_prototypes_prototype_id_option_type_id" ON "spree_option_type_prototypes" ("prototype_id", "option_type_id")
28854
+  (0.3ms)  SELECT sql
28855
+ FROM sqlite_master
28856
+ WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'
28857
+ UNION ALL
28858
+ SELECT sql
28859
+ FROM sqlite_temp_master
28860
+ WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'
28861
+ 
28862
+  (0.4ms)  SELECT sql
28863
+ FROM sqlite_master
28864
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28865
+ UNION ALL
28866
+ SELECT sql
28867
+ FROM sqlite_temp_master
28868
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
28869
+ 
28870
+  (0.3ms) CREATE INDEX "index_spree_option_type_prototypes_on_prototype_id" ON "spree_option_type_prototypes" ("prototype_id")
28871
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191816"]]
28872
+  (159.7ms) commit transaction
28873
+ Migrating to AddIndexesToSpreeOptionValueVariant (20180516191817)
28874
+  (0.2ms) begin transaction
28875
+  (0.1ms) SELECT COUNT(*) AS count_all, "spree_option_value_variants"."variant_id" AS spree_option_value_variants_variant_id, "spree_option_value_variants"."option_value_id" AS spree_option_value_variants_option_value_id FROM "spree_option_value_variants" GROUP BY "spree_option_value_variants"."variant_id", "spree_option_value_variants"."option_value_id" HAVING (sum(1) > 1)
28876
+  (0.2ms)  SELECT sql
28877
+ FROM sqlite_master
28878
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28879
+ UNION ALL
28880
+ SELECT sql
28881
+ FROM sqlite_temp_master
28882
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28883
+ 
28884
+  (0.3ms)  SELECT sql
28885
+ FROM sqlite_master
28886
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
28887
+ UNION ALL
28888
+ SELECT sql
28889
+ FROM sqlite_temp_master
28890
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
28891
+ 
28892
+  (0.2ms)  SELECT sql
28893
+ FROM sqlite_master
28894
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28895
+ UNION ALL
28896
+ SELECT sql
28897
+ FROM sqlite_temp_master
28898
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28899
+ 
28900
+  (0.2ms)  SELECT sql
28901
+ FROM sqlite_master
28902
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
28903
+ UNION ALL
28904
+ SELECT sql
28905
+ FROM sqlite_temp_master
28906
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
28907
+ 
28908
+  (0.5ms) DROP INDEX "index_option_values_variants_on_variant_id_and_option_value_id"
28909
+  (0.2ms)  SELECT sql
28910
+ FROM sqlite_master
28911
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28912
+ UNION ALL
28913
+ SELECT sql
28914
+ FROM sqlite_temp_master
28915
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28916
+ 
28917
+  (0.4ms) CREATE UNIQUE INDEX "index_option_values_variants_on_variant_id_and_option_value_id" ON "spree_option_value_variants" ("variant_id", "option_value_id")
28918
+  (0.2ms)  SELECT sql
28919
+ FROM sqlite_master
28920
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
28921
+ UNION ALL
28922
+ SELECT sql
28923
+ FROM sqlite_temp_master
28924
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
28925
+ 
28926
+  (0.2ms)  SELECT sql
28927
+ FROM sqlite_master
28928
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28929
+ UNION ALL
28930
+ SELECT sql
28931
+ FROM sqlite_temp_master
28932
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
28933
+ 
28934
+  (0.2ms) CREATE INDEX "index_spree_option_value_variants_on_variant_id" ON "spree_option_value_variants" ("variant_id")
28935
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191817"]]
28936
+  (156.2ms) commit transaction
28937
+ Migrating to AddIndexOnPromotionIdToOrderPromotions (20180516191818)
28938
+  (0.1ms) begin transaction
28939
+  (0.3ms)  SELECT sql
28940
+ FROM sqlite_master
28941
+ WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'
28942
+ UNION ALL
28943
+ SELECT sql
28944
+ FROM sqlite_temp_master
28945
+ WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'
28946
+ 
28947
+  (0.3ms)  SELECT sql
28948
+ FROM sqlite_master
28949
+ WHERE name='index_spree_order_promotions_on_order_id' AND type='index'
28950
+ UNION ALL
28951
+ SELECT sql
28952
+ FROM sqlite_temp_master
28953
+ WHERE name='index_spree_order_promotions_on_order_id' AND type='index'
28954
+ 
28955
+  (0.6ms) CREATE INDEX "index_spree_order_promotions_on_promotion_id" ON "spree_order_promotions" ("promotion_id")
28956
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191818"]]
28957
+  (148.8ms) commit transaction
28958
+ Migrating to AddIndexesForPropertyPrototype (20180516191819)
28959
+  (0.1ms) begin transaction
28960
+  (0.3ms) SELECT COUNT(*) AS count_all, "spree_property_prototypes"."prototype_id" AS spree_property_prototypes_prototype_id, "spree_property_prototypes"."property_id" AS spree_property_prototypes_property_id FROM "spree_property_prototypes" GROUP BY "spree_property_prototypes"."prototype_id", "spree_property_prototypes"."property_id" HAVING (sum(1) > 1)
28961
+  (0.3ms)  SELECT sql
28962
+ FROM sqlite_master
28963
+ WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'
28964
+ UNION ALL
28965
+ SELECT sql
28966
+ FROM sqlite_temp_master
28967
+ WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'
28968
+ 
28969
+  (0.3ms)  SELECT sql
28970
+ FROM sqlite_master
28971
+ WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'
28972
+ UNION ALL
28973
+ SELECT sql
28974
+ FROM sqlite_temp_master
28975
+ WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'
28976
+ 
28977
+  (0.4ms) DROP INDEX "index_properties_prototypes_on_prototype_and_property"
28978
+  (0.4ms) CREATE UNIQUE INDEX "index_property_prototypes_on_prototype_id_and_property_id" ON "spree_property_prototypes" ("prototype_id", "property_id")
28979
+  (0.2ms)  SELECT sql
28980
+ FROM sqlite_master
28981
+ WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'
28982
+ UNION ALL
28983
+ SELECT sql
28984
+ FROM sqlite_temp_master
28985
+ WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'
28986
+ 
28987
+  (0.3ms) CREATE INDEX "index_spree_property_prototypes_on_prototype_id" ON "spree_property_prototypes" ("prototype_id")
28988
+  (0.2ms)  SELECT sql
28989
+ FROM sqlite_master
28990
+ WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'
28991
+ UNION ALL
28992
+ SELECT sql
28993
+ FROM sqlite_temp_master
28994
+ WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'
28995
+ 
28996
+  (0.2ms)  SELECT sql
28997
+ FROM sqlite_master
28998
+ WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'
28999
+ UNION ALL
29000
+ SELECT sql
29001
+ FROM sqlite_temp_master
29002
+ WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'
29003
+ 
29004
+  (0.2ms) CREATE INDEX "index_spree_property_prototypes_on_property_id" ON "spree_property_prototypes" ("property_id")
29005
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191819"]]
29006
+  (157.2ms) commit transaction
29007
+ Migrating to AddIndexForPrototypeIdToPrototypeTaxons (20180516191820)
29008
+  (0.1ms) begin transaction
29009
+  (0.5ms)  SELECT sql
29010
+ FROM sqlite_master
29011
+ WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'
29012
+ UNION ALL
29013
+ SELECT sql
29014
+ FROM sqlite_temp_master
29015
+ WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'
29016
+ 
29017
+  (0.4ms)  SELECT sql
29018
+ FROM sqlite_master
29019
+ WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'
29020
+ UNION ALL
29021
+ SELECT sql
29022
+ FROM sqlite_temp_master
29023
+ WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'
29024
+ 
29025
+  (0.9ms) CREATE INDEX "index_spree_prototype_taxons_on_prototype_id" ON "spree_prototype_taxons" ("prototype_id")
29026
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191820"]]
29027
+  (147.2ms) commit transaction
29028
+ Migrating to AddIndexesToRefunds (20180516191821)
29029
+  (0.1ms) begin transaction
29030
+  (0.5ms)  SELECT sql
29031
+ FROM sqlite_master
29032
+ WHERE name='index_refunds_on_refund_reason_id' AND type='index'
29033
+ UNION ALL
29034
+ SELECT sql
29035
+ FROM sqlite_temp_master
29036
+ WHERE name='index_refunds_on_refund_reason_id' AND type='index'
29037
+ 
29038
+  (0.8ms) CREATE INDEX "index_spree_refunds_on_payment_id" ON "spree_refunds" ("payment_id")
29039
+  (0.4ms)  SELECT sql
29040
+ FROM sqlite_master
29041
+ WHERE name='index_spree_refunds_on_payment_id' AND type='index'
29042
+ UNION ALL
29043
+ SELECT sql
29044
+ FROM sqlite_temp_master
29045
+ WHERE name='index_spree_refunds_on_payment_id' AND type='index'
29046
+ 
29047
+  (0.4ms)  SELECT sql
29048
+ FROM sqlite_master
29049
+ WHERE name='index_refunds_on_refund_reason_id' AND type='index'
29050
+ UNION ALL
29051
+ SELECT sql
29052
+ FROM sqlite_temp_master
29053
+ WHERE name='index_refunds_on_refund_reason_id' AND type='index'
29054
+ 
29055
+  (0.6ms) CREATE INDEX "index_spree_refunds_on_reimbursement_id" ON "spree_refunds" ("reimbursement_id")
29056
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191821"]]
29057
+  (144.3ms) commit transaction
29058
+ Migrating to AddIndexesToReimbursementCredits (20180516191822)
29059
+  (0.1ms) begin transaction
29060
+  (0.9ms) CREATE INDEX "index_spree_reimbursement_credits_on_reimbursement_id" ON "spree_reimbursement_credits" ("reimbursement_id")
29061
+  (0.4ms)  SELECT sql
29062
+ FROM sqlite_master
29063
+ WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'
29064
+ UNION ALL
29065
+ SELECT sql
29066
+ FROM sqlite_temp_master
29067
+ WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'
29068
+ 
29069
+  (0.5ms) CREATE INDEX "index_reimbursement_credits_on_creditable_id_and_type" ON "spree_reimbursement_credits" ("creditable_id", "creditable_type")
29070
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191822"]]
29071
+  (146.4ms) commit transaction
29072
+ Migrating to AddIndexesToReturnAuthorizations (20180516191823)
29073
+  (0.4ms) begin transaction
29074
+  (0.2ms)  SELECT sql
29075
+ FROM sqlite_master
29076
+ WHERE name='index_spree_return_authorizations_on_number' AND type='index'
29077
+ UNION ALL
29078
+ SELECT sql
29079
+ FROM sqlite_temp_master
29080
+ WHERE name='index_spree_return_authorizations_on_number' AND type='index'
29081
+ 
29082
+  (0.2ms)  SELECT sql
29083
+ FROM sqlite_master
29084
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
29085
+ UNION ALL
29086
+ SELECT sql
29087
+ FROM sqlite_temp_master
29088
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
29089
+ 
29090
+  (0.5ms) CREATE INDEX "index_spree_return_authorizations_on_order_id" ON "spree_return_authorizations" ("order_id")
29091
+  (0.3ms)  SELECT sql
29092
+ FROM sqlite_master
29093
+ WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'
29094
+ UNION ALL
29095
+ SELECT sql
29096
+ FROM sqlite_temp_master
29097
+ WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'
29098
+ 
29099
+  (0.2ms)  SELECT sql
29100
+ FROM sqlite_master
29101
+ WHERE name='index_spree_return_authorizations_on_number' AND type='index'
29102
+ UNION ALL
29103
+ SELECT sql
29104
+ FROM sqlite_temp_master
29105
+ WHERE name='index_spree_return_authorizations_on_number' AND type='index'
29106
+ 
29107
+  (0.2ms)  SELECT sql
29108
+ FROM sqlite_master
29109
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
29110
+ UNION ALL
29111
+ SELECT sql
29112
+ FROM sqlite_temp_master
29113
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
29114
+ 
29115
+  (0.3ms) CREATE INDEX "index_spree_return_authorizations_on_stock_location_id" ON "spree_return_authorizations" ("stock_location_id")
29116
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191823"]]
29117
+  (189.3ms) commit transaction
29118
+ Migrating to AddIndexesToReturnItems (20180516191824)
29119
+  (0.2ms) begin transaction
29120
+  (0.4ms)  SELECT sql
29121
+ FROM sqlite_master
29122
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29123
+ UNION ALL
29124
+ SELECT sql
29125
+ FROM sqlite_temp_master
29126
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29127
+ 
29128
+  (0.7ms) CREATE INDEX "index_spree_return_items_on_return_authorization_id" ON "spree_return_items" ("return_authorization_id")
29129
+  (0.5ms)  SELECT sql
29130
+ FROM sqlite_master
29131
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29132
+ UNION ALL
29133
+ SELECT sql
29134
+ FROM sqlite_temp_master
29135
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29136
+ 
29137
+  (0.2ms)  SELECT sql
29138
+ FROM sqlite_master
29139
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29140
+ UNION ALL
29141
+ SELECT sql
29142
+ FROM sqlite_temp_master
29143
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29144
+ 
29145
+  (0.2ms) CREATE INDEX "index_spree_return_items_on_inventory_unit_id" ON "spree_return_items" ("inventory_unit_id")
29146
+  (0.2ms)  SELECT sql
29147
+ FROM sqlite_master
29148
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29149
+ UNION ALL
29150
+ SELECT sql
29151
+ FROM sqlite_temp_master
29152
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29153
+ 
29154
+  (0.2ms)  SELECT sql
29155
+ FROM sqlite_master
29156
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29157
+ UNION ALL
29158
+ SELECT sql
29159
+ FROM sqlite_temp_master
29160
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29161
+ 
29162
+  (0.2ms)  SELECT sql
29163
+ FROM sqlite_master
29164
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29165
+ UNION ALL
29166
+ SELECT sql
29167
+ FROM sqlite_temp_master
29168
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29169
+ 
29170
+  (0.2ms) CREATE INDEX "index_spree_return_items_on_reimbursement_id" ON "spree_return_items" ("reimbursement_id")
29171
+  (0.2ms)  SELECT sql
29172
+ FROM sqlite_master
29173
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
29174
+ UNION ALL
29175
+ SELECT sql
29176
+ FROM sqlite_temp_master
29177
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
29178
+ 
29179
+  (0.2ms)  SELECT sql
29180
+ FROM sqlite_master
29181
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29182
+ UNION ALL
29183
+ SELECT sql
29184
+ FROM sqlite_temp_master
29185
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29186
+ 
29187
+  (0.2ms)  SELECT sql
29188
+ FROM sqlite_master
29189
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29190
+ UNION ALL
29191
+ SELECT sql
29192
+ FROM sqlite_temp_master
29193
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29194
+ 
29195
+  (0.2ms)  SELECT sql
29196
+ FROM sqlite_master
29197
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29198
+ UNION ALL
29199
+ SELECT sql
29200
+ FROM sqlite_temp_master
29201
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29202
+ 
29203
+  (0.3ms) CREATE INDEX "index_spree_return_items_on_exchange_variant_id" ON "spree_return_items" ("exchange_variant_id")
29204
+  (0.2ms)  SELECT sql
29205
+ FROM sqlite_master
29206
+ WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'
29207
+ UNION ALL
29208
+ SELECT sql
29209
+ FROM sqlite_temp_master
29210
+ WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'
29211
+ 
29212
+  (0.3ms)  SELECT sql
29213
+ FROM sqlite_master
29214
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
29215
+ UNION ALL
29216
+ SELECT sql
29217
+ FROM sqlite_temp_master
29218
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
29219
+ 
29220
+  (0.2ms)  SELECT sql
29221
+ FROM sqlite_master
29222
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29223
+ UNION ALL
29224
+ SELECT sql
29225
+ FROM sqlite_temp_master
29226
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29227
+ 
29228
+  (0.3ms)  SELECT sql
29229
+ FROM sqlite_master
29230
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29231
+ UNION ALL
29232
+ SELECT sql
29233
+ FROM sqlite_temp_master
29234
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29235
+ 
29236
+  (0.2ms)  SELECT sql
29237
+ FROM sqlite_master
29238
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29239
+ UNION ALL
29240
+ SELECT sql
29241
+ FROM sqlite_temp_master
29242
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29243
+ 
29244
+  (0.3ms) CREATE INDEX "index_spree_return_items_on_preferred_reimbursement_type_id" ON "spree_return_items" ("preferred_reimbursement_type_id")
29245
+  (0.2ms)  SELECT sql
29246
+ FROM sqlite_master
29247
+ WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'
29248
+ UNION ALL
29249
+ SELECT sql
29250
+ FROM sqlite_temp_master
29251
+ WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'
29252
+ 
29253
+  (0.2ms)  SELECT sql
29254
+ FROM sqlite_master
29255
+ WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'
29256
+ UNION ALL
29257
+ SELECT sql
29258
+ FROM sqlite_temp_master
29259
+ WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'
29260
+ 
29261
+  (0.2ms)  SELECT sql
29262
+ FROM sqlite_master
29263
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
29264
+ UNION ALL
29265
+ SELECT sql
29266
+ FROM sqlite_temp_master
29267
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
29268
+ 
29269
+  (0.2ms)  SELECT sql
29270
+ FROM sqlite_master
29271
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29272
+ UNION ALL
29273
+ SELECT sql
29274
+ FROM sqlite_temp_master
29275
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
29276
+ 
29277
+  (0.2ms)  SELECT sql
29278
+ FROM sqlite_master
29279
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29280
+ UNION ALL
29281
+ SELECT sql
29282
+ FROM sqlite_temp_master
29283
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
29284
+ 
29285
+  (0.2ms)  SELECT sql
29286
+ FROM sqlite_master
29287
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29288
+ UNION ALL
29289
+ SELECT sql
29290
+ FROM sqlite_temp_master
29291
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
29292
+ 
29293
+  (0.2ms) CREATE INDEX "index_spree_return_items_on_override_reimbursement_type_id" ON "spree_return_items" ("override_reimbursement_type_id")
29294
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191824"]]
29295
+  (154.8ms) commit transaction
29296
+ Migrating to AddIndexToRoleUsers (20180516191825)
29297
+  (0.2ms) begin transaction
29298
+  (0.3ms) SELECT COUNT(*) AS count_all, "spree_role_users"."role_id" AS spree_role_users_role_id, "spree_role_users"."user_id" AS spree_role_users_user_id FROM "spree_role_users" GROUP BY "spree_role_users"."role_id", "spree_role_users"."user_id" HAVING (sum(1) > 1)
29299
+  (0.3ms)  SELECT sql
29300
+ FROM sqlite_master
29301
+ WHERE name='index_spree_role_users_on_role_id' AND type='index'
29302
+ UNION ALL
29303
+ SELECT sql
29304
+ FROM sqlite_temp_master
29305
+ WHERE name='index_spree_role_users_on_role_id' AND type='index'
29306
+ 
29307
+  (0.9ms)  SELECT sql
29308
+ FROM sqlite_master
29309
+ WHERE name='index_spree_role_users_on_user_id' AND type='index'
29310
+ UNION ALL
29311
+ SELECT sql
29312
+ FROM sqlite_temp_master
29313
+ WHERE name='index_spree_role_users_on_user_id' AND type='index'
29314
+ 
29315
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191825"]]
29316
+  (123.1ms) commit transaction
29317
+ Migrating to AddIndexToShippingMethodCategories (20180516191826)
29318
+  (0.1ms) begin transaction
29319
+  (0.4ms)  SELECT sql
29320
+ FROM sqlite_master
29321
+ WHERE name='unique_spree_shipping_method_categories' AND type='index'
29322
+ UNION ALL
29323
+ SELECT sql
29324
+ FROM sqlite_temp_master
29325
+ WHERE name='unique_spree_shipping_method_categories' AND type='index'
29326
+ 
29327
+  (0.4ms)  SELECT sql
29328
+ FROM sqlite_master
29329
+ WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'
29330
+ UNION ALL
29331
+ SELECT sql
29332
+ FROM sqlite_temp_master
29333
+ WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'
29334
+ 
29335
+  (1.0ms) CREATE INDEX "index_spree_shipping_method_categories_on_shipping_category_id" ON "spree_shipping_method_categories" ("shipping_category_id")
29336
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191826"]]
29337
+  (162.7ms) commit transaction
29338
+ Migrating to AddIndexToShippingMethodZones (20180516191827)
29339
+  (0.1ms) begin transaction
29340
+  (0.1ms) SELECT COUNT(*) AS count_all, "spree_shipping_method_zones"."shipping_method_id" AS spree_shipping_method_zones_shipping_method_id, "spree_shipping_method_zones"."zone_id" AS spree_shipping_method_zones_zone_id FROM "spree_shipping_method_zones" GROUP BY "spree_shipping_method_zones"."shipping_method_id", "spree_shipping_method_zones"."zone_id" HAVING (sum(1) > 1)
29341
+  (0.4ms) CREATE INDEX "index_spree_shipping_method_zones_on_zone_id" ON "spree_shipping_method_zones" ("zone_id")
29342
+  (0.2ms)  SELECT sql
29343
+ FROM sqlite_master
29344
+ WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'
29345
+ UNION ALL
29346
+ SELECT sql
29347
+ FROM sqlite_temp_master
29348
+ WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'
29349
+ 
29350
+  (0.3ms) CREATE INDEX "index_spree_shipping_method_zones_on_shipping_method_id" ON "spree_shipping_method_zones" ("shipping_method_id")
29351
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191827"]]
29352
+  (155.5ms) commit transaction
29353
+ Migrating to AddIndexToSpreeShippingRates (20180516191828)
29354
+  (0.1ms) begin transaction
29355
+  (0.5ms)  SELECT sql
29356
+ FROM sqlite_master
29357
+ WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'
29358
+ UNION ALL
29359
+ SELECT sql
29360
+ FROM sqlite_temp_master
29361
+ WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'
29362
+ 
29363
+  (0.4ms)  SELECT sql
29364
+ FROM sqlite_master
29365
+ WHERE name='index_spree_shipping_rates_on_selected' AND type='index'
29366
+ UNION ALL
29367
+ SELECT sql
29368
+ FROM sqlite_temp_master
29369
+ WHERE name='index_spree_shipping_rates_on_selected' AND type='index'
29370
+ 
29371
+  (0.4ms)  SELECT sql
29372
+ FROM sqlite_master
29373
+ WHERE name='spree_shipping_rates_join_index' AND type='index'
29374
+ UNION ALL
29375
+ SELECT sql
29376
+ FROM sqlite_temp_master
29377
+ WHERE name='spree_shipping_rates_join_index' AND type='index'
29378
+ 
29379
+  (0.8ms) CREATE INDEX "index_spree_shipping_rates_on_shipment_id" ON "spree_shipping_rates" ("shipment_id")
29380
+  (0.4ms)  SELECT sql
29381
+ FROM sqlite_master
29382
+ WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'
29383
+ UNION ALL
29384
+ SELECT sql
29385
+ FROM sqlite_temp_master
29386
+ WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'
29387
+ 
29388
+  (0.4ms)  SELECT sql
29389
+ FROM sqlite_master
29390
+ WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'
29391
+ UNION ALL
29392
+ SELECT sql
29393
+ FROM sqlite_temp_master
29394
+ WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'
29395
+ 
29396
+  (0.2ms)  SELECT sql
29397
+ FROM sqlite_master
29398
+ WHERE name='index_spree_shipping_rates_on_selected' AND type='index'
29399
+ UNION ALL
29400
+ SELECT sql
29401
+ FROM sqlite_temp_master
29402
+ WHERE name='index_spree_shipping_rates_on_selected' AND type='index'
29403
+ 
29404
+  (0.2ms)  SELECT sql
29405
+ FROM sqlite_master
29406
+ WHERE name='spree_shipping_rates_join_index' AND type='index'
29407
+ UNION ALL
29408
+ SELECT sql
29409
+ FROM sqlite_temp_master
29410
+ WHERE name='spree_shipping_rates_join_index' AND type='index'
29411
+ 
29412
+  (0.2ms) CREATE INDEX "index_spree_shipping_rates_on_shipping_method_id" ON "spree_shipping_rates" ("shipping_method_id")
29413
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191828"]]
29414
+  (142.6ms) commit transaction
29415
+ Migrating to AddIndexToSpreeStockItems (20180516191829)
29416
+  (0.1ms) begin transaction
29417
+  (0.4ms)  SELECT sql
29418
+ FROM sqlite_master
29419
+ WHERE name='index_spree_stock_items_on_variant_id' AND type='index'
29420
+ UNION ALL
29421
+ SELECT sql
29422
+ FROM sqlite_temp_master
29423
+ WHERE name='index_spree_stock_items_on_variant_id' AND type='index'
29424
+ 
29425
+  (0.4ms)  SELECT sql
29426
+ FROM sqlite_master
29427
+ WHERE name='index_spree_stock_items_on_backorderable' AND type='index'
29428
+ UNION ALL
29429
+ SELECT sql
29430
+ FROM sqlite_temp_master
29431
+ WHERE name='index_spree_stock_items_on_backorderable' AND type='index'
29432
+ 
29433
+  (0.4ms)  SELECT sql
29434
+ FROM sqlite_master
29435
+ WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'
29436
+ UNION ALL
29437
+ SELECT sql
29438
+ FROM sqlite_temp_master
29439
+ WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'
29440
+ 
29441
+  (0.4ms)  SELECT sql
29442
+ FROM sqlite_master
29443
+ WHERE name='stock_item_by_loc_and_var_id' AND type='index'
29444
+ UNION ALL
29445
+ SELECT sql
29446
+ FROM sqlite_temp_master
29447
+ WHERE name='stock_item_by_loc_and_var_id' AND type='index'
29448
+ 
29449
+  (0.8ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")
29450
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191829"]]
29451
+  (136.1ms) commit transaction
29452
+ Migrating to AddIndexToSpreeStockMovement (20180516191830)
29453
+  (0.1ms) begin transaction
29454
+  (0.4ms)  SELECT sql
29455
+ FROM sqlite_master
29456
+ WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'
29457
+ UNION ALL
29458
+ SELECT sql
29459
+ FROM sqlite_temp_master
29460
+ WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'
29461
+ 
29462
+  (0.9ms) CREATE INDEX "index_stock_movements_on_originator_id_and_originator_type" ON "spree_stock_movements" ("originator_id", "originator_type")
29463
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191830"]]
29464
+  (126.0ms) commit transaction
29465
+ Migrating to ChangeIndexesOnFriendlyIdSlugs (20180516191831)
29466
+  (0.1ms) begin transaction
29467
+  (0.5ms)  SELECT sql
29468
+ FROM sqlite_master
29469
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29470
+ UNION ALL
29471
+ SELECT sql
29472
+ FROM sqlite_temp_master
29473
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29474
+ 
29475
+  (0.5ms)  SELECT sql
29476
+ FROM sqlite_master
29477
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29478
+ UNION ALL
29479
+ SELECT sql
29480
+ FROM sqlite_temp_master
29481
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29482
+ 
29483
+  (0.4ms)  SELECT sql
29484
+ FROM sqlite_master
29485
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
29486
+ UNION ALL
29487
+ SELECT sql
29488
+ FROM sqlite_temp_master
29489
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
29490
+ 
29491
+  (0.2ms)  SELECT sql
29492
+ FROM sqlite_master
29493
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
29494
+ UNION ALL
29495
+ SELECT sql
29496
+ FROM sqlite_temp_master
29497
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
29498
+ 
29499
+  (0.2ms)  SELECT sql
29500
+ FROM sqlite_master
29501
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29502
+ UNION ALL
29503
+ SELECT sql
29504
+ FROM sqlite_temp_master
29505
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29506
+ 
29507
+  (0.4ms) DROP INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type"
29508
+  (0.2ms)  SELECT sql
29509
+ FROM sqlite_master
29510
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29511
+ UNION ALL
29512
+ SELECT sql
29513
+ FROM sqlite_temp_master
29514
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29515
+ 
29516
+  (0.2ms)  SELECT sql
29517
+ FROM sqlite_master
29518
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29519
+ UNION ALL
29520
+ SELECT sql
29521
+ FROM sqlite_temp_master
29522
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29523
+ 
29524
+  (0.2ms)  SELECT sql
29525
+ FROM sqlite_master
29526
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
29527
+ UNION ALL
29528
+ SELECT sql
29529
+ FROM sqlite_temp_master
29530
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
29531
+ 
29532
+  (0.2ms)  SELECT sql
29533
+ FROM sqlite_master
29534
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29535
+ UNION ALL
29536
+ SELECT sql
29537
+ FROM sqlite_temp_master
29538
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29539
+ 
29540
+  (0.3ms) DROP INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope"
29541
+  (0.2ms)  SELECT sql
29542
+ FROM sqlite_master
29543
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29544
+ UNION ALL
29545
+ SELECT sql
29546
+ FROM sqlite_temp_master
29547
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29548
+ 
29549
+  (0.2ms)  SELECT sql
29550
+ FROM sqlite_master
29551
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29552
+ UNION ALL
29553
+ SELECT sql
29554
+ FROM sqlite_temp_master
29555
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29556
+ 
29557
+  (0.2ms)  SELECT sql
29558
+ FROM sqlite_master
29559
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29560
+ UNION ALL
29561
+ SELECT sql
29562
+ FROM sqlite_temp_master
29563
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29564
+ 
29565
+  (0.3ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")
29566
+  (0.3ms)  SELECT sql
29567
+ FROM sqlite_master
29568
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
29569
+ UNION ALL
29570
+ SELECT sql
29571
+ FROM sqlite_temp_master
29572
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
29573
+ 
29574
+  (0.4ms)  SELECT sql
29575
+ FROM sqlite_master
29576
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29577
+ UNION ALL
29578
+ SELECT sql
29579
+ FROM sqlite_temp_master
29580
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29581
+ 
29582
+  (0.2ms)  SELECT sql
29583
+ FROM sqlite_master
29584
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29585
+ UNION ALL
29586
+ SELECT sql
29587
+ FROM sqlite_temp_master
29588
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29589
+ 
29590
+  (0.2ms)  SELECT sql
29591
+ FROM sqlite_master
29592
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29593
+ UNION ALL
29594
+ SELECT sql
29595
+ FROM sqlite_temp_master
29596
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29597
+ 
29598
+  (0.3ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")
29599
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191831"]]
29600
+  (127.0ms) commit transaction
29601
+ Migrating to AddAnalyticsKindToSpreeTrackers (20180516191832)
29602
+  (0.1ms) begin transaction
29603
+  (1.3ms) ALTER TABLE "spree_trackers" ADD "kind" integer DEFAULT 0 NOT NULL
29604
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191832"]]
29605
+  (149.4ms) commit transaction
29606
+ Migrating to RenameTrackerKindField (20180516191833)
29607
+  (0.1ms) begin transaction
29608
+  (0.3ms) CREATE TEMPORARY TABLE "aspree_trackers" ("id" integer NOT NULL PRIMARY KEY, "analytics_id" varchar DEFAULT NULL, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "engine" integer DEFAULT 0 NOT NULL)
29609
+  (0.2ms)  SELECT sql
29610
+ FROM sqlite_master
29611
+ WHERE name='index_spree_trackers_on_active' AND type='index'
29612
+ UNION ALL
29613
+ SELECT sql
29614
+ FROM sqlite_temp_master
29615
+ WHERE name='index_spree_trackers_on_active' AND type='index'
29616
+ 
29617
+  (0.2ms) CREATE INDEX "tindex_aspree_trackers_on_active" ON "aspree_trackers" ("active")
29618
+  (0.1ms) INSERT INTO "aspree_trackers" ("id","analytics_id","active","created_at","updated_at","engine")
29619
+ SELECT "id","analytics_id","active","created_at","updated_at","kind" FROM "spree_trackers"
29620
+  (0.4ms) DROP TABLE "spree_trackers"
29621
+  (0.3ms) CREATE TABLE "spree_trackers" ("id" integer NOT NULL PRIMARY KEY, "analytics_id" varchar DEFAULT NULL, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "engine" integer DEFAULT 0 NOT NULL)
29622
+  (0.3ms)  SELECT sql
29623
+ FROM sqlite_master
29624
+ WHERE name='tindex_aspree_trackers_on_active' AND type='index'
29625
+ UNION ALL
29626
+ SELECT sql
29627
+ FROM sqlite_temp_master
29628
+ WHERE name='tindex_aspree_trackers_on_active' AND type='index'
29629
+ 
29630
+  (0.4ms) CREATE INDEX "index_spree_trackers_on_active" ON "spree_trackers" ("active")
29631
+  (0.2ms) INSERT INTO "spree_trackers" ("id","analytics_id","active","created_at","updated_at","engine")
29632
+ SELECT "id","analytics_id","active","created_at","updated_at","engine" FROM "aspree_trackers"
29633
+  (0.2ms) DROP TABLE "aspree_trackers"
29634
+  (0.2ms)  SELECT sql
29635
+ FROM sqlite_master
29636
+ WHERE name='index_spree_trackers_on_active' AND type='index'
29637
+ UNION ALL
29638
+ SELECT sql
29639
+ FROM sqlite_temp_master
29640
+ WHERE name='index_spree_trackers_on_active' AND type='index'
29641
+ 
29642
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191833"]]
29643
+  (137.1ms) commit transaction
29644
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
29645
+  (0.1ms) begin transaction
29646
+  (0.1ms) commit transaction
29647
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
29648
+  (0.2ms)  SELECT sql
29649
+ FROM sqlite_master
29650
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
29651
+ UNION ALL
29652
+ SELECT sql
29653
+ FROM sqlite_temp_master
29654
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
29655
+ 
29656
+  (0.2ms)  SELECT sql
29657
+ FROM sqlite_master
29658
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
29659
+ UNION ALL
29660
+ SELECT sql
29661
+ FROM sqlite_temp_master
29662
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
29663
+ 
29664
+  (0.2ms)  SELECT sql
29665
+ FROM sqlite_master
29666
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29667
+ UNION ALL
29668
+ SELECT sql
29669
+ FROM sqlite_temp_master
29670
+ WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'
29671
+ 
29672
+  (0.2ms)  SELECT sql
29673
+ FROM sqlite_master
29674
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29675
+ UNION ALL
29676
+ SELECT sql
29677
+ FROM sqlite_temp_master
29678
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
29679
+ 
29680
+  (0.2ms)  SELECT sql
29681
+ FROM sqlite_master
29682
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29683
+ UNION ALL
29684
+ SELECT sql
29685
+ FROM sqlite_temp_master
29686
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
29687
+ 
29688
+  (0.2ms)  SELECT sql
29689
+ FROM sqlite_master
29690
+ WHERE name='index_spree_addresses_on_state_id' AND type='index'
29691
+ UNION ALL
29692
+ SELECT sql
29693
+ FROM sqlite_temp_master
29694
+ WHERE name='index_spree_addresses_on_state_id' AND type='index'
29695
+ 
29696
+  (0.2ms)  SELECT sql
29697
+ FROM sqlite_master
29698
+ WHERE name='index_spree_addresses_on_country_id' AND type='index'
29699
+ UNION ALL
29700
+ SELECT sql
29701
+ FROM sqlite_temp_master
29702
+ WHERE name='index_spree_addresses_on_country_id' AND type='index'
29703
+ 
29704
+  (0.2ms)  SELECT sql
29705
+ FROM sqlite_master
29706
+ WHERE name='index_addresses_on_lastname' AND type='index'
29707
+ UNION ALL
29708
+ SELECT sql
29709
+ FROM sqlite_temp_master
29710
+ WHERE name='index_addresses_on_lastname' AND type='index'
29711
+ 
29712
+  (0.3ms)  SELECT sql
29713
+ FROM sqlite_master
29714
+ WHERE name='index_addresses_on_firstname' AND type='index'
29715
+ UNION ALL
29716
+ SELECT sql
29717
+ FROM sqlite_temp_master
29718
+ WHERE name='index_addresses_on_firstname' AND type='index'
29719
+ 
29720
+  (0.2ms)  SELECT sql
29721
+ FROM sqlite_master
29722
+ WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'
29723
+ UNION ALL
29724
+ SELECT sql
29725
+ FROM sqlite_temp_master
29726
+ WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'
29727
+ 
29728
+  (0.2ms)  SELECT sql
29729
+ FROM sqlite_master
29730
+ WHERE name='index_spree_adjustments_on_order_id' AND type='index'
29731
+ UNION ALL
29732
+ SELECT sql
29733
+ FROM sqlite_temp_master
29734
+ WHERE name='index_spree_adjustments_on_order_id' AND type='index'
29735
+ 
29736
+  (0.2ms)  SELECT sql
29737
+ FROM sqlite_master
29738
+ WHERE name='index_spree_adjustments_on_eligible' AND type='index'
29739
+ UNION ALL
29740
+ SELECT sql
29741
+ FROM sqlite_temp_master
29742
+ WHERE name='index_spree_adjustments_on_eligible' AND type='index'
29743
+ 
29744
+  (0.2ms)  SELECT sql
29745
+ FROM sqlite_master
29746
+ WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'
29747
+ UNION ALL
29748
+ SELECT sql
29749
+ FROM sqlite_temp_master
29750
+ WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'
29751
+ 
29752
+  (0.2ms)  SELECT sql
29753
+ FROM sqlite_master
29754
+ WHERE name='index_spree_assets_on_position' AND type='index'
29755
+ UNION ALL
29756
+ SELECT sql
29757
+ FROM sqlite_temp_master
29758
+ WHERE name='index_spree_assets_on_position' AND type='index'
29759
+ 
29760
+  (0.2ms)  SELECT sql
29761
+ FROM sqlite_master
29762
+ WHERE name='index_assets_on_viewable_type_and_type' AND type='index'
29763
+ UNION ALL
29764
+ SELECT sql
29765
+ FROM sqlite_temp_master
29766
+ WHERE name='index_assets_on_viewable_type_and_type' AND type='index'
29767
+ 
29768
+  (0.2ms)  SELECT sql
29769
+ FROM sqlite_master
29770
+ WHERE name='index_assets_on_viewable_id' AND type='index'
29771
+ UNION ALL
29772
+ SELECT sql
29773
+ FROM sqlite_temp_master
29774
+ WHERE name='index_assets_on_viewable_id' AND type='index'
29775
+ 
29776
+  (0.2ms)  SELECT sql
29777
+ FROM sqlite_master
29778
+ WHERE name='index_spree_calculators_on_deleted_at' AND type='index'
29779
+ UNION ALL
29780
+ SELECT sql
29781
+ FROM sqlite_temp_master
29782
+ WHERE name='index_spree_calculators_on_deleted_at' AND type='index'
29783
+ 
29784
+  (0.2ms)  SELECT sql
29785
+ FROM sqlite_master
29786
+ WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'
29787
+ UNION ALL
29788
+ SELECT sql
29789
+ FROM sqlite_temp_master
29790
+ WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'
29791
+ 
29792
+  (0.2ms)  SELECT sql
29793
+ FROM sqlite_master
29794
+ WHERE name='index_spree_calculators_on_id_and_type' AND type='index'
29795
+ UNION ALL
29796
+ SELECT sql
29797
+ FROM sqlite_temp_master
29798
+ WHERE name='index_spree_calculators_on_id_and_type' AND type='index'
29799
+ 
29800
+  (0.2ms)  SELECT sql
29801
+ FROM sqlite_master
29802
+ WHERE name='index_spree_countries_on_iso_name' AND type='index'
29803
+ UNION ALL
29804
+ SELECT sql
29805
+ FROM sqlite_temp_master
29806
+ WHERE name='index_spree_countries_on_iso_name' AND type='index'
29807
+ 
29808
+  (0.2ms)  SELECT sql
29809
+ FROM sqlite_master
29810
+ WHERE name='index_spree_countries_on_name' AND type='index'
29811
+ UNION ALL
29812
+ SELECT sql
29813
+ FROM sqlite_temp_master
29814
+ WHERE name='index_spree_countries_on_name' AND type='index'
29815
+ 
29816
+  (0.2ms)  SELECT sql
29817
+ FROM sqlite_master
29818
+ WHERE name='index_spree_credit_cards_on_address_id' AND type='index'
29819
+ UNION ALL
29820
+ SELECT sql
29821
+ FROM sqlite_temp_master
29822
+ WHERE name='index_spree_credit_cards_on_address_id' AND type='index'
29823
+ 
29824
+  (0.2ms)  SELECT sql
29825
+ FROM sqlite_master
29826
+ WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'
29827
+ UNION ALL
29828
+ SELECT sql
29829
+ FROM sqlite_temp_master
29830
+ WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'
29831
+ 
29832
+  (0.2ms)  SELECT sql
29833
+ FROM sqlite_master
29834
+ WHERE name='index_spree_credit_cards_on_user_id' AND type='index'
29835
+ UNION ALL
29836
+ SELECT sql
29837
+ FROM sqlite_temp_master
29838
+ WHERE name='index_spree_credit_cards_on_user_id' AND type='index'
29839
+ 
29840
+  (0.2ms)  SELECT sql
29841
+ FROM sqlite_master
29842
+ WHERE name='index_spree_customer_returns_on_stock_location_id' AND type='index'
29843
+ UNION ALL
29844
+ SELECT sql
29845
+ FROM sqlite_temp_master
29846
+ WHERE name='index_spree_customer_returns_on_stock_location_id' AND type='index'
29847
+ 
29848
+  (0.2ms)  SELECT sql
29849
+ FROM sqlite_master
29850
+ WHERE name='index_spree_customer_returns_on_number' AND type='index'
29851
+ UNION ALL
29852
+ SELECT sql
29853
+ FROM sqlite_temp_master
29854
+ WHERE name='index_spree_customer_returns_on_number' AND type='index'
29855
+ 
29856
+  (0.2ms)  SELECT sql
29857
+ FROM sqlite_master
29858
+ WHERE name='index_spree_gateways_on_test_mode' AND type='index'
29859
+ UNION ALL
29860
+ SELECT sql
29861
+ FROM sqlite_temp_master
29862
+ WHERE name='index_spree_gateways_on_test_mode' AND type='index'
29863
+ 
29864
+  (0.2ms)  SELECT sql
29865
+ FROM sqlite_master
29866
+ WHERE name='index_spree_gateways_on_active' AND type='index'
29867
+ UNION ALL
29868
+ SELECT sql
29869
+ FROM sqlite_temp_master
29870
+ WHERE name='index_spree_gateways_on_active' AND type='index'
29871
+ 
29872
+  (0.2ms)  SELECT sql
29873
+ FROM sqlite_master
29874
+ WHERE name='index_spree_inventory_units_on_original_return_item_id' AND type='index'
29875
+ UNION ALL
29876
+ SELECT sql
29877
+ FROM sqlite_temp_master
29878
+ WHERE name='index_spree_inventory_units_on_original_return_item_id' AND type='index'
29879
+ 
29880
+  (0.2ms)  SELECT sql
29881
+ FROM sqlite_master
29882
+ WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'
29883
+ UNION ALL
29884
+ SELECT sql
29885
+ FROM sqlite_temp_master
29886
+ WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'
29887
+ 
29888
+  (0.2ms)  SELECT sql
29889
+ FROM sqlite_master
29890
+ WHERE name='index_inventory_units_on_variant_id' AND type='index'
29891
+ UNION ALL
29892
+ SELECT sql
29893
+ FROM sqlite_temp_master
29894
+ WHERE name='index_inventory_units_on_variant_id' AND type='index'
29895
+ 
29896
+  (0.2ms)  SELECT sql
29897
+ FROM sqlite_master
29898
+ WHERE name='index_inventory_units_on_shipment_id' AND type='index'
29899
+ UNION ALL
29900
+ SELECT sql
29901
+ FROM sqlite_temp_master
29902
+ WHERE name='index_inventory_units_on_shipment_id' AND type='index'
29903
+ 
29904
+  (0.2ms)  SELECT sql
29905
+ FROM sqlite_master
29906
+ WHERE name='index_inventory_units_on_order_id' AND type='index'
29907
+ UNION ALL
29908
+ SELECT sql
29909
+ FROM sqlite_temp_master
29910
+ WHERE name='index_inventory_units_on_order_id' AND type='index'
29911
+ 
29912
+  (0.2ms)  SELECT sql
29913
+ FROM sqlite_master
29914
+ WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'
29915
+ UNION ALL
29916
+ SELECT sql
29917
+ FROM sqlite_temp_master
29918
+ WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'
29919
+ 
29920
+  (0.2ms)  SELECT sql
29921
+ FROM sqlite_master
29922
+ WHERE name='index_spree_line_items_on_variant_id' AND type='index'
29923
+ UNION ALL
29924
+ SELECT sql
29925
+ FROM sqlite_temp_master
29926
+ WHERE name='index_spree_line_items_on_variant_id' AND type='index'
29927
+ 
29928
+  (0.2ms)  SELECT sql
29929
+ FROM sqlite_master
29930
+ WHERE name='index_spree_line_items_on_order_id' AND type='index'
29931
+ UNION ALL
29932
+ SELECT sql
29933
+ FROM sqlite_temp_master
29934
+ WHERE name='index_spree_line_items_on_order_id' AND type='index'
29935
+ 
29936
+  (0.2ms)  SELECT sql
29937
+ FROM sqlite_master
29938
+ WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index'
29939
+ UNION ALL
29940
+ SELECT sql
29941
+ FROM sqlite_temp_master
29942
+ WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index'
29943
+ 
29944
+  (0.2ms)  SELECT sql
29945
+ FROM sqlite_master
29946
+ WHERE name='index_spree_option_type_prototypes_on_prototype_id' AND type='index'
29947
+ UNION ALL
29948
+ SELECT sql
29949
+ FROM sqlite_temp_master
29950
+ WHERE name='index_spree_option_type_prototypes_on_prototype_id' AND type='index'
29951
+ 
29952
+  (0.2ms)  SELECT sql
29953
+ FROM sqlite_master
29954
+ WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'
29955
+ UNION ALL
29956
+ SELECT sql
29957
+ FROM sqlite_temp_master
29958
+ WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'
29959
+ 
29960
+  (0.2ms)  SELECT sql
29961
+ FROM sqlite_master
29962
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
29963
+ UNION ALL
29964
+ SELECT sql
29965
+ FROM sqlite_temp_master
29966
+ WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'
29967
+ 
29968
+  (0.2ms)  SELECT sql
29969
+ FROM sqlite_master
29970
+ WHERE name='index_spree_option_types_on_name' AND type='index'
29971
+ UNION ALL
29972
+ SELECT sql
29973
+ FROM sqlite_temp_master
29974
+ WHERE name='index_spree_option_types_on_name' AND type='index'
29975
+ 
29976
+  (0.2ms)  SELECT sql
29977
+ FROM sqlite_master
29978
+ WHERE name='index_spree_option_types_on_position' AND type='index'
29979
+ UNION ALL
29980
+ SELECT sql
29981
+ FROM sqlite_temp_master
29982
+ WHERE name='index_spree_option_types_on_position' AND type='index'
29983
+ 
29984
+  (0.2ms)  SELECT sql
29985
+ FROM sqlite_master
29986
+ WHERE name='index_spree_option_value_variants_on_variant_id' AND type='index'
29987
+ UNION ALL
29988
+ SELECT sql
29989
+ FROM sqlite_temp_master
29990
+ WHERE name='index_spree_option_value_variants_on_variant_id' AND type='index'
29991
+ 
29992
+  (0.2ms)  SELECT sql
29993
+ FROM sqlite_master
29994
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
29995
+ UNION ALL
29996
+ SELECT sql
29997
+ FROM sqlite_temp_master
29998
+ WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'
29999
+ 
30000
+  (0.2ms)  SELECT sql
30001
+ FROM sqlite_master
30002
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
30003
+ UNION ALL
30004
+ SELECT sql
30005
+ FROM sqlite_temp_master
30006
+ WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'
30007
+ 
30008
+  (0.2ms)  SELECT sql
30009
+ FROM sqlite_master
30010
+ WHERE name='index_spree_option_values_on_name' AND type='index'
30011
+ UNION ALL
30012
+ SELECT sql
30013
+ FROM sqlite_temp_master
30014
+ WHERE name='index_spree_option_values_on_name' AND type='index'
30015
+ 
30016
+  (0.2ms)  SELECT sql
30017
+ FROM sqlite_master
30018
+ WHERE name='index_spree_option_values_on_position' AND type='index'
30019
+ UNION ALL
30020
+ SELECT sql
30021
+ FROM sqlite_temp_master
30022
+ WHERE name='index_spree_option_values_on_position' AND type='index'
30023
+ 
30024
+  (0.2ms)  SELECT sql
30025
+ FROM sqlite_master
30026
+ WHERE name='index_spree_option_values_on_option_type_id' AND type='index'
30027
+ UNION ALL
30028
+ SELECT sql
30029
+ FROM sqlite_temp_master
30030
+ WHERE name='index_spree_option_values_on_option_type_id' AND type='index'
30031
+ 
30032
+  (0.2ms)  SELECT sql
30033
+ FROM sqlite_master
30034
+ WHERE name='index_spree_order_promotions_on_promotion_id' AND type='index'
30035
+ UNION ALL
30036
+ SELECT sql
30037
+ FROM sqlite_temp_master
30038
+ WHERE name='index_spree_order_promotions_on_promotion_id' AND type='index'
30039
+ 
30040
+  (0.2ms)  SELECT sql
30041
+ FROM sqlite_master
30042
+ WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'
30043
+ UNION ALL
30044
+ SELECT sql
30045
+ FROM sqlite_temp_master
30046
+ WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'
30047
+ 
30048
+  (0.2ms)  SELECT sql
30049
+ FROM sqlite_master
30050
+ WHERE name='index_spree_order_promotions_on_order_id' AND type='index'
30051
+ UNION ALL
30052
+ SELECT sql
30053
+ FROM sqlite_temp_master
30054
+ WHERE name='index_spree_order_promotions_on_order_id' AND type='index'
30055
+ 
30056
+  (0.2ms)  SELECT sql
30057
+ FROM sqlite_master
30058
+ WHERE name='index_spree_orders_on_number' AND type='index'
30059
+ UNION ALL
30060
+ SELECT sql
30061
+ FROM sqlite_temp_master
30062
+ WHERE name='index_spree_orders_on_number' AND type='index'
30063
+ 
30064
+  (0.2ms)  SELECT sql
30065
+ FROM sqlite_master
30066
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
30067
+ UNION ALL
30068
+ SELECT sql
30069
+ FROM sqlite_temp_master
30070
+ WHERE name='index_spree_orders_on_store_id' AND type='index'
30071
+ 
30072
+  (0.2ms)  SELECT sql
30073
+ FROM sqlite_master
30074
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
30075
+ UNION ALL
30076
+ SELECT sql
30077
+ FROM sqlite_temp_master
30078
+ WHERE name='index_spree_orders_on_canceler_id' AND type='index'
30079
+ 
30080
+  (0.2ms)  SELECT sql
30081
+ FROM sqlite_master
30082
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
30083
+ UNION ALL
30084
+ SELECT sql
30085
+ FROM sqlite_temp_master
30086
+ WHERE name='index_spree_orders_on_guest_token' AND type='index'
30087
+ 
30088
+  (0.2ms)  SELECT sql
30089
+ FROM sqlite_master
30090
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
30091
+ UNION ALL
30092
+ SELECT sql
30093
+ FROM sqlite_temp_master
30094
+ WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'
30095
+ 
30096
+  (0.2ms)  SELECT sql
30097
+ FROM sqlite_master
30098
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
30099
+ UNION ALL
30100
+ SELECT sql
30101
+ FROM sqlite_temp_master
30102
+ WHERE name='index_spree_orders_on_ship_address_id' AND type='index'
30103
+ 
30104
+  (0.2ms)  SELECT sql
30105
+ FROM sqlite_master
30106
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
30107
+ UNION ALL
30108
+ SELECT sql
30109
+ FROM sqlite_temp_master
30110
+ WHERE name='index_spree_orders_on_created_by_id' AND type='index'
30111
+ 
30112
+  (0.2ms)  SELECT sql
30113
+ FROM sqlite_master
30114
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
30115
+ UNION ALL
30116
+ SELECT sql
30117
+ FROM sqlite_temp_master
30118
+ WHERE name='index_spree_orders_on_considered_risky' AND type='index'
30119
+ 
30120
+  (0.2ms)  SELECT sql
30121
+ FROM sqlite_master
30122
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
30123
+ UNION ALL
30124
+ SELECT sql
30125
+ FROM sqlite_temp_master
30126
+ WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'
30127
+ 
30128
+  (0.2ms)  SELECT sql
30129
+ FROM sqlite_master
30130
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
30131
+ UNION ALL
30132
+ SELECT sql
30133
+ FROM sqlite_temp_master
30134
+ WHERE name='index_spree_orders_on_bill_address_id' AND type='index'
30135
+ 
30136
+  (0.2ms)  SELECT sql
30137
+ FROM sqlite_master
30138
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
30139
+ UNION ALL
30140
+ SELECT sql
30141
+ FROM sqlite_temp_master
30142
+ WHERE name='index_spree_orders_on_approver_id' AND type='index'
30143
+ 
30144
+  (0.2ms)  SELECT sql
30145
+ FROM sqlite_master
30146
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
30147
+ UNION ALL
30148
+ SELECT sql
30149
+ FROM sqlite_temp_master
30150
+ WHERE name='index_spree_orders_on_completed_at' AND type='index'
30151
+ 
30152
+  (0.2ms)  SELECT sql
30153
+ FROM sqlite_master
30154
+ WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index'
30155
+ UNION ALL
30156
+ SELECT sql
30157
+ FROM sqlite_temp_master
30158
+ WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index'
30159
+ 
30160
+  (0.2ms)  SELECT sql
30161
+ FROM sqlite_master
30162
+ WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'
30163
+ UNION ALL
30164
+ SELECT sql
30165
+ FROM sqlite_temp_master
30166
+ WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'
30167
+ 
30168
+  (0.2ms)  SELECT sql
30169
+ FROM sqlite_master
30170
+ WHERE name='index_spree_payments_on_number' AND type='index'
30171
+ UNION ALL
30172
+ SELECT sql
30173
+ FROM sqlite_temp_master
30174
+ WHERE name='index_spree_payments_on_number' AND type='index'
30175
+ 
30176
+  (0.2ms)  SELECT sql
30177
+ FROM sqlite_master
30178
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
30179
+ UNION ALL
30180
+ SELECT sql
30181
+ FROM sqlite_temp_master
30182
+ WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'
30183
+ 
30184
+  (0.2ms)  SELECT sql
30185
+ FROM sqlite_master
30186
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
30187
+ UNION ALL
30188
+ SELECT sql
30189
+ FROM sqlite_temp_master
30190
+ WHERE name='index_spree_payments_on_payment_method_id' AND type='index'
30191
+ 
30192
+  (0.2ms)  SELECT sql
30193
+ FROM sqlite_master
30194
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
30195
+ UNION ALL
30196
+ SELECT sql
30197
+ FROM sqlite_temp_master
30198
+ WHERE name='index_spree_payments_on_order_id' AND type='index'
30199
+ 
30200
+  (0.2ms)  SELECT sql
30201
+ FROM sqlite_master
30202
+ WHERE name='index_spree_preferences_on_key' AND type='index'
30203
+ UNION ALL
30204
+ SELECT sql
30205
+ FROM sqlite_temp_master
30206
+ WHERE name='index_spree_preferences_on_key' AND type='index'
30207
+ 
30208
+  (0.2ms)  SELECT sql
30209
+ FROM sqlite_master
30210
+ WHERE name='index_spree_prices_on_variant_id' AND type='index'
30211
+ UNION ALL
30212
+ SELECT sql
30213
+ FROM sqlite_temp_master
30214
+ WHERE name='index_spree_prices_on_variant_id' AND type='index'
30215
+ 
30216
+  (0.2ms)  SELECT sql
30217
+ FROM sqlite_master
30218
+ WHERE name='index_spree_prices_on_deleted_at' AND type='index'
30219
+ UNION ALL
30220
+ SELECT sql
30221
+ FROM sqlite_temp_master
30222
+ WHERE name='index_spree_prices_on_deleted_at' AND type='index'
30223
+ 
30224
+  (0.2ms)  SELECT sql
30225
+ FROM sqlite_master
30226
+ WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'
30227
+ UNION ALL
30228
+ SELECT sql
30229
+ FROM sqlite_temp_master
30230
+ WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'
30231
+ 
30232
+  (0.2ms)  SELECT sql
30233
+ FROM sqlite_master
30234
+ WHERE name='index_spree_product_option_types_on_position' AND type='index'
30235
+ UNION ALL
30236
+ SELECT sql
30237
+ FROM sqlite_temp_master
30238
+ WHERE name='index_spree_product_option_types_on_position' AND type='index'
30239
+ 
30240
+  (0.2ms)  SELECT sql
30241
+ FROM sqlite_master
30242
+ WHERE name='index_spree_product_option_types_on_product_id' AND type='index'
30243
+ UNION ALL
30244
+ SELECT sql
30245
+ FROM sqlite_temp_master
30246
+ WHERE name='index_spree_product_option_types_on_product_id' AND type='index'
30247
+ 
30248
+  (0.2ms)  SELECT sql
30249
+ FROM sqlite_master
30250
+ WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'
30251
+ UNION ALL
30252
+ SELECT sql
30253
+ FROM sqlite_temp_master
30254
+ WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'
30255
+ 
30256
+  (0.2ms)  SELECT sql
30257
+ FROM sqlite_master
30258
+ WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'
30259
+ UNION ALL
30260
+ SELECT sql
30261
+ FROM sqlite_temp_master
30262
+ WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'
30263
+ 
30264
+  (0.2ms)  SELECT sql
30265
+ FROM sqlite_master
30266
+ WHERE name='index_products_promotion_rules_on_product_id' AND type='index'
30267
+ UNION ALL
30268
+ SELECT sql
30269
+ FROM sqlite_temp_master
30270
+ WHERE name='index_products_promotion_rules_on_product_id' AND type='index'
30271
+ 
30272
+  (0.2ms)  SELECT sql
30273
+ FROM sqlite_master
30274
+ WHERE name='index_spree_product_properties_on_property_id' AND type='index'
30275
+ UNION ALL
30276
+ SELECT sql
30277
+ FROM sqlite_temp_master
30278
+ WHERE name='index_spree_product_properties_on_property_id' AND type='index'
30279
+ 
30280
+  (0.2ms)  SELECT sql
30281
+ FROM sqlite_master
30282
+ WHERE name='index_spree_product_properties_on_position' AND type='index'
30283
+ UNION ALL
30284
+ SELECT sql
30285
+ FROM sqlite_temp_master
30286
+ WHERE name='index_spree_product_properties_on_position' AND type='index'
30287
+ 
30288
+  (0.2ms)  SELECT sql
30289
+ FROM sqlite_master
30290
+ WHERE name='index_product_properties_on_product_id' AND type='index'
30291
+ UNION ALL
30292
+ SELECT sql
30293
+ FROM sqlite_temp_master
30294
+ WHERE name='index_product_properties_on_product_id' AND type='index'
30295
+ 
30296
+  (0.2ms)  SELECT sql
30297
+ FROM sqlite_master
30298
+ WHERE name='index_spree_products_on_discontinue_on' AND type='index'
30299
+ UNION ALL
30300
+ SELECT sql
30301
+ FROM sqlite_temp_master
30302
+ WHERE name='index_spree_products_on_discontinue_on' AND type='index'
30303
+ 
30304
+  (0.2ms)  SELECT sql
30305
+ FROM sqlite_master
30306
+ WHERE name='index_spree_products_on_slug' AND type='index'
30307
+ UNION ALL
30308
+ SELECT sql
30309
+ FROM sqlite_temp_master
30310
+ WHERE name='index_spree_products_on_slug' AND type='index'
30311
+ 
30312
+  (0.2ms)  SELECT sql
30313
+ FROM sqlite_master
30314
+ WHERE name='index_spree_products_on_tax_category_id' AND type='index'
30315
+ UNION ALL
30316
+ SELECT sql
30317
+ FROM sqlite_temp_master
30318
+ WHERE name='index_spree_products_on_tax_category_id' AND type='index'
30319
+ 
30320
+  (0.2ms)  SELECT sql
30321
+ FROM sqlite_master
30322
+ WHERE name='index_spree_products_on_shipping_category_id' AND type='index'
30323
+ UNION ALL
30324
+ SELECT sql
30325
+ FROM sqlite_temp_master
30326
+ WHERE name='index_spree_products_on_shipping_category_id' AND type='index'
30327
+ 
30328
+  (0.2ms)  SELECT sql
30329
+ FROM sqlite_master
30330
+ WHERE name='index_spree_products_on_name' AND type='index'
30331
+ UNION ALL
30332
+ SELECT sql
30333
+ FROM sqlite_temp_master
30334
+ WHERE name='index_spree_products_on_name' AND type='index'
30335
+ 
30336
+  (0.2ms)  SELECT sql
30337
+ FROM sqlite_master
30338
+ WHERE name='index_spree_products_on_deleted_at' AND type='index'
30339
+ UNION ALL
30340
+ SELECT sql
30341
+ FROM sqlite_temp_master
30342
+ WHERE name='index_spree_products_on_deleted_at' AND type='index'
30343
+ 
30344
+  (0.2ms)  SELECT sql
30345
+ FROM sqlite_master
30346
+ WHERE name='index_spree_products_on_available_on' AND type='index'
30347
+ UNION ALL
30348
+ SELECT sql
30349
+ FROM sqlite_temp_master
30350
+ WHERE name='index_spree_products_on_available_on' AND type='index'
30351
+ 
30352
+  (0.2ms)  SELECT sql
30353
+ FROM sqlite_master
30354
+ WHERE name='index_spree_products_taxons_on_position' AND type='index'
30355
+ UNION ALL
30356
+ SELECT sql
30357
+ FROM sqlite_temp_master
30358
+ WHERE name='index_spree_products_taxons_on_position' AND type='index'
30359
+ 
30360
+  (0.2ms)  SELECT sql
30361
+ FROM sqlite_master
30362
+ WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'
30363
+ UNION ALL
30364
+ SELECT sql
30365
+ FROM sqlite_temp_master
30366
+ WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'
30367
+ 
30368
+  (0.2ms)  SELECT sql
30369
+ FROM sqlite_master
30370
+ WHERE name='index_spree_products_taxons_on_product_id' AND type='index'
30371
+ UNION ALL
30372
+ SELECT sql
30373
+ FROM sqlite_temp_master
30374
+ WHERE name='index_spree_products_taxons_on_product_id' AND type='index'
30375
+ 
30376
+  (0.2ms)  SELECT sql
30377
+ FROM sqlite_master
30378
+ WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index'
30379
+ UNION ALL
30380
+ SELECT sql
30381
+ FROM sqlite_temp_master
30382
+ WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index'
30383
+ 
30384
+  (0.2ms)  SELECT sql
30385
+ FROM sqlite_master
30386
+ WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'
30387
+ UNION ALL
30388
+ SELECT sql
30389
+ FROM sqlite_temp_master
30390
+ WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'
30391
+ 
30392
+  (0.2ms)  SELECT sql
30393
+ FROM sqlite_master
30394
+ WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index'
30395
+ UNION ALL
30396
+ SELECT sql
30397
+ FROM sqlite_temp_master
30398
+ WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index'
30399
+ 
30400
+  (0.2ms)  SELECT sql
30401
+ FROM sqlite_master
30402
+ WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'
30403
+ UNION ALL
30404
+ SELECT sql
30405
+ FROM sqlite_temp_master
30406
+ WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'
30407
+ 
30408
+  (0.2ms)  SELECT sql
30409
+ FROM sqlite_master
30410
+ WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'
30411
+ UNION ALL
30412
+ SELECT sql
30413
+ FROM sqlite_temp_master
30414
+ WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'
30415
+ 
30416
+  (0.2ms)  SELECT sql
30417
+ FROM sqlite_master
30418
+ WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index'
30419
+ UNION ALL
30420
+ SELECT sql
30421
+ FROM sqlite_temp_master
30422
+ WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index'
30423
+ 
30424
+  (0.2ms)  SELECT sql
30425
+ FROM sqlite_master
30426
+ WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'
30427
+ UNION ALL
30428
+ SELECT sql
30429
+ FROM sqlite_temp_master
30430
+ WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'
30431
+ 
30432
+  (0.2ms)  SELECT sql
30433
+ FROM sqlite_master
30434
+ WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'
30435
+ UNION ALL
30436
+ SELECT sql
30437
+ FROM sqlite_temp_master
30438
+ WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'
30439
+ 
30440
+  (0.2ms)  SELECT sql
30441
+ FROM sqlite_master
30442
+ WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'
30443
+ UNION ALL
30444
+ SELECT sql
30445
+ FROM sqlite_temp_master
30446
+ WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'
30447
+ 
30448
+  (0.2ms)  SELECT sql
30449
+ FROM sqlite_master
30450
+ WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index'
30451
+ UNION ALL
30452
+ SELECT sql
30453
+ FROM sqlite_temp_master
30454
+ WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index'
30455
+ 
30456
+  (0.2ms)  SELECT sql
30457
+ FROM sqlite_master
30458
+ WHERE name='index_promotion_rules_on_user_id' AND type='index'
30459
+ UNION ALL
30460
+ SELECT sql
30461
+ FROM sqlite_temp_master
30462
+ WHERE name='index_promotion_rules_on_user_id' AND type='index'
30463
+ 
30464
+  (0.2ms)  SELECT sql
30465
+ FROM sqlite_master
30466
+ WHERE name='index_promotion_rules_on_product_group_id' AND type='index'
30467
+ UNION ALL
30468
+ SELECT sql
30469
+ FROM sqlite_temp_master
30470
+ WHERE name='index_promotion_rules_on_product_group_id' AND type='index'
30471
+ 
30472
+  (0.2ms)  SELECT sql
30473
+ FROM sqlite_master
30474
+ WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'
30475
+ UNION ALL
30476
+ SELECT sql
30477
+ FROM sqlite_temp_master
30478
+ WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'
30479
+ 
30480
+  (0.2ms)  SELECT sql
30481
+ FROM sqlite_master
30482
+ WHERE name='index_spree_promotions_on_advertise' AND type='index'
30483
+ UNION ALL
30484
+ SELECT sql
30485
+ FROM sqlite_temp_master
30486
+ WHERE name='index_spree_promotions_on_advertise' AND type='index'
30487
+ 
30488
+  (0.2ms)  SELECT sql
30489
+ FROM sqlite_master
30490
+ WHERE name='index_spree_promotions_on_starts_at' AND type='index'
30491
+ UNION ALL
30492
+ SELECT sql
30493
+ FROM sqlite_temp_master
30494
+ WHERE name='index_spree_promotions_on_starts_at' AND type='index'
30495
+ 
30496
+  (0.2ms)  SELECT sql
30497
+ FROM sqlite_master
30498
+ WHERE name='index_spree_promotions_on_expires_at' AND type='index'
30499
+ UNION ALL
30500
+ SELECT sql
30501
+ FROM sqlite_temp_master
30502
+ WHERE name='index_spree_promotions_on_expires_at' AND type='index'
30503
+ 
30504
+  (0.2ms)  SELECT sql
30505
+ FROM sqlite_master
30506
+ WHERE name='index_spree_promotions_on_code' AND type='index'
30507
+ UNION ALL
30508
+ SELECT sql
30509
+ FROM sqlite_temp_master
30510
+ WHERE name='index_spree_promotions_on_code' AND type='index'
30511
+ 
30512
+  (0.2ms)  SELECT sql
30513
+ FROM sqlite_master
30514
+ WHERE name='index_spree_promotions_on_id_and_type' AND type='index'
30515
+ UNION ALL
30516
+ SELECT sql
30517
+ FROM sqlite_temp_master
30518
+ WHERE name='index_spree_promotions_on_id_and_type' AND type='index'
30519
+ 
30520
+  (0.2ms)  SELECT sql
30521
+ FROM sqlite_master
30522
+ WHERE name='index_spree_properties_on_name' AND type='index'
30523
+ UNION ALL
30524
+ SELECT sql
30525
+ FROM sqlite_temp_master
30526
+ WHERE name='index_spree_properties_on_name' AND type='index'
30527
+ 
30528
+  (0.2ms)  SELECT sql
30529
+ FROM sqlite_master
30530
+ WHERE name='index_spree_property_prototypes_on_property_id' AND type='index'
30531
+ UNION ALL
30532
+ SELECT sql
30533
+ FROM sqlite_temp_master
30534
+ WHERE name='index_spree_property_prototypes_on_property_id' AND type='index'
30535
+ 
30536
+  (0.2ms)  SELECT sql
30537
+ FROM sqlite_master
30538
+ WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'
30539
+ UNION ALL
30540
+ SELECT sql
30541
+ FROM sqlite_temp_master
30542
+ WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'
30543
+ 
30544
+  (0.2ms)  SELECT sql
30545
+ FROM sqlite_master
30546
+ WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'
30547
+ UNION ALL
30548
+ SELECT sql
30549
+ FROM sqlite_temp_master
30550
+ WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'
30551
+ 
30552
+  (0.2ms)  SELECT sql
30553
+ FROM sqlite_master
30554
+ WHERE name='index_spree_prototype_taxons_on_prototype_id' AND type='index'
30555
+ UNION ALL
30556
+ SELECT sql
30557
+ FROM sqlite_temp_master
30558
+ WHERE name='index_spree_prototype_taxons_on_prototype_id' AND type='index'
30559
+ 
30560
+  (0.2ms)  SELECT sql
30561
+ FROM sqlite_master
30562
+ WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'
30563
+ UNION ALL
30564
+ SELECT sql
30565
+ FROM sqlite_temp_master
30566
+ WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'
30567
+ 
30568
+  (0.2ms)  SELECT sql
30569
+ FROM sqlite_master
30570
+ WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'
30571
+ UNION ALL
30572
+ SELECT sql
30573
+ FROM sqlite_temp_master
30574
+ WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'
30575
+ 
30576
+  (0.2ms)  SELECT sql
30577
+ FROM sqlite_master
30578
+ WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'
30579
+ UNION ALL
30580
+ SELECT sql
30581
+ FROM sqlite_temp_master
30582
+ WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'
30583
+ 
30584
+  (0.2ms)  SELECT sql
30585
+ FROM sqlite_master
30586
+ WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'
30587
+ UNION ALL
30588
+ SELECT sql
30589
+ FROM sqlite_temp_master
30590
+ WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'
30591
+ 
30592
+  (0.2ms)  SELECT sql
30593
+ FROM sqlite_master
30594
+ WHERE name='index_spree_refund_reasons_on_name' AND type='index'
30595
+ UNION ALL
30596
+ SELECT sql
30597
+ FROM sqlite_temp_master
30598
+ WHERE name='index_spree_refund_reasons_on_name' AND type='index'
30599
+ 
30600
+  (0.2ms)  SELECT sql
30601
+ FROM sqlite_master
30602
+ WHERE name='index_spree_refunds_on_reimbursement_id' AND type='index'
30603
+ UNION ALL
30604
+ SELECT sql
30605
+ FROM sqlite_temp_master
30606
+ WHERE name='index_spree_refunds_on_reimbursement_id' AND type='index'
30607
+ 
30608
+  (0.2ms)  SELECT sql
30609
+ FROM sqlite_master
30610
+ WHERE name='index_spree_refunds_on_payment_id' AND type='index'
30611
+ UNION ALL
30612
+ SELECT sql
30613
+ FROM sqlite_temp_master
30614
+ WHERE name='index_spree_refunds_on_payment_id' AND type='index'
30615
+ 
30616
+  (0.2ms)  SELECT sql
30617
+ FROM sqlite_master
30618
+ WHERE name='index_refunds_on_refund_reason_id' AND type='index'
30619
+ UNION ALL
30620
+ SELECT sql
30621
+ FROM sqlite_temp_master
30622
+ WHERE name='index_refunds_on_refund_reason_id' AND type='index'
30623
+ 
30624
+  (0.2ms)  SELECT sql
30625
+ FROM sqlite_master
30626
+ WHERE name='index_reimbursement_credits_on_creditable_id_and_type' AND type='index'
30627
+ UNION ALL
30628
+ SELECT sql
30629
+ FROM sqlite_temp_master
30630
+ WHERE name='index_reimbursement_credits_on_creditable_id_and_type' AND type='index'
30631
+ 
30632
+  (0.2ms)  SELECT sql
30633
+ FROM sqlite_master
30634
+ WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'
30635
+ UNION ALL
30636
+ SELECT sql
30637
+ FROM sqlite_temp_master
30638
+ WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'
30639
+ 
30640
+  (0.2ms)  SELECT sql
30641
+ FROM sqlite_master
30642
+ WHERE name='index_spree_reimbursement_types_on_name' AND type='index'
30643
+ UNION ALL
30644
+ SELECT sql
30645
+ FROM sqlite_temp_master
30646
+ WHERE name='index_spree_reimbursement_types_on_name' AND type='index'
30647
+ 
30648
+  (0.2ms)  SELECT sql
30649
+ FROM sqlite_master
30650
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
30651
+ UNION ALL
30652
+ SELECT sql
30653
+ FROM sqlite_temp_master
30654
+ WHERE name='index_spree_reimbursement_types_on_type' AND type='index'
30655
+ 
30656
+  (0.2ms)  SELECT sql
30657
+ FROM sqlite_master
30658
+ WHERE name='index_spree_reimbursements_on_number' AND type='index'
30659
+ UNION ALL
30660
+ SELECT sql
30661
+ FROM sqlite_temp_master
30662
+ WHERE name='index_spree_reimbursements_on_number' AND type='index'
30663
+ 
30664
+  (0.2ms)  SELECT sql
30665
+ FROM sqlite_master
30666
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
30667
+ UNION ALL
30668
+ SELECT sql
30669
+ FROM sqlite_temp_master
30670
+ WHERE name='index_spree_reimbursements_on_order_id' AND type='index'
30671
+ 
30672
+  (0.2ms)  SELECT sql
30673
+ FROM sqlite_master
30674
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
30675
+ UNION ALL
30676
+ SELECT sql
30677
+ FROM sqlite_temp_master
30678
+ WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'
30679
+ 
30680
+  (0.2ms)  SELECT sql
30681
+ FROM sqlite_master
30682
+ WHERE name='index_spree_return_authorization_reasons_on_name' AND type='index'
30683
+ UNION ALL
30684
+ SELECT sql
30685
+ FROM sqlite_temp_master
30686
+ WHERE name='index_spree_return_authorization_reasons_on_name' AND type='index'
30687
+ 
30688
+  (0.2ms)  SELECT sql
30689
+ FROM sqlite_master
30690
+ WHERE name='index_spree_return_authorizations_on_stock_location_id' AND type='index'
30691
+ UNION ALL
30692
+ SELECT sql
30693
+ FROM sqlite_temp_master
30694
+ WHERE name='index_spree_return_authorizations_on_stock_location_id' AND type='index'
30695
+ 
30696
+  (0.2ms)  SELECT sql
30697
+ FROM sqlite_master
30698
+ WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'
30699
+ UNION ALL
30700
+ SELECT sql
30701
+ FROM sqlite_temp_master
30702
+ WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'
30703
+ 
30704
+  (0.2ms)  SELECT sql
30705
+ FROM sqlite_master
30706
+ WHERE name='index_spree_return_authorizations_on_number' AND type='index'
30707
+ UNION ALL
30708
+ SELECT sql
30709
+ FROM sqlite_temp_master
30710
+ WHERE name='index_spree_return_authorizations_on_number' AND type='index'
30711
+ 
30712
+  (0.2ms)  SELECT sql
30713
+ FROM sqlite_master
30714
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
30715
+ UNION ALL
30716
+ SELECT sql
30717
+ FROM sqlite_temp_master
30718
+ WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'
30719
+ 
30720
+  (0.2ms)  SELECT sql
30721
+ FROM sqlite_master
30722
+ WHERE name='index_spree_return_items_on_override_reimbursement_type_id' AND type='index'
30723
+ UNION ALL
30724
+ SELECT sql
30725
+ FROM sqlite_temp_master
30726
+ WHERE name='index_spree_return_items_on_override_reimbursement_type_id' AND type='index'
30727
+ 
30728
+  (0.2ms)  SELECT sql
30729
+ FROM sqlite_master
30730
+ WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'
30731
+ UNION ALL
30732
+ SELECT sql
30733
+ FROM sqlite_temp_master
30734
+ WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'
30735
+ 
30736
+  (0.2ms)  SELECT sql
30737
+ FROM sqlite_master
30738
+ WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'
30739
+ UNION ALL
30740
+ SELECT sql
30741
+ FROM sqlite_temp_master
30742
+ WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'
30743
+ 
30744
+  (0.2ms)  SELECT sql
30745
+ FROM sqlite_master
30746
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
30747
+ UNION ALL
30748
+ SELECT sql
30749
+ FROM sqlite_temp_master
30750
+ WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'
30751
+ 
30752
+  (0.2ms)  SELECT sql
30753
+ FROM sqlite_master
30754
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
30755
+ UNION ALL
30756
+ SELECT sql
30757
+ FROM sqlite_temp_master
30758
+ WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'
30759
+ 
30760
+  (0.2ms)  SELECT sql
30761
+ FROM sqlite_master
30762
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
30763
+ UNION ALL
30764
+ SELECT sql
30765
+ FROM sqlite_temp_master
30766
+ WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'
30767
+ 
30768
+  (0.2ms)  SELECT sql
30769
+ FROM sqlite_master
30770
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
30771
+ UNION ALL
30772
+ SELECT sql
30773
+ FROM sqlite_temp_master
30774
+ WHERE name='index_return_items_on_customer_return_id' AND type='index'
30775
+ 
30776
+  (0.2ms)  SELECT sql
30777
+ FROM sqlite_master
30778
+ WHERE name='index_spree_role_users_on_role_id' AND type='index'
30779
+ UNION ALL
30780
+ SELECT sql
30781
+ FROM sqlite_temp_master
30782
+ WHERE name='index_spree_role_users_on_role_id' AND type='index'
30783
+ 
30784
+  (0.2ms)  SELECT sql
30785
+ FROM sqlite_master
30786
+ WHERE name='index_spree_role_users_on_user_id' AND type='index'
30787
+ UNION ALL
30788
+ SELECT sql
30789
+ FROM sqlite_temp_master
30790
+ WHERE name='index_spree_role_users_on_user_id' AND type='index'
30791
+ 
30792
+  (0.2ms)  SELECT sql
30793
+ FROM sqlite_master
30794
+ WHERE name='index_spree_roles_on_name' AND type='index'
30795
+ UNION ALL
30796
+ SELECT sql
30797
+ FROM sqlite_temp_master
30798
+ WHERE name='index_spree_roles_on_name' AND type='index'
30799
+ 
30800
+  (0.2ms)  SELECT sql
30801
+ FROM sqlite_master
30802
+ WHERE name='index_spree_shipments_on_number' AND type='index'
30803
+ UNION ALL
30804
+ SELECT sql
30805
+ FROM sqlite_temp_master
30806
+ WHERE name='index_spree_shipments_on_number' AND type='index'
30807
+ 
30808
+  (0.2ms)  SELECT sql
30809
+ FROM sqlite_master
30810
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
30811
+ UNION ALL
30812
+ SELECT sql
30813
+ FROM sqlite_temp_master
30814
+ WHERE name='index_spree_shipments_on_address_id' AND type='index'
30815
+ 
30816
+  (0.2ms)  SELECT sql
30817
+ FROM sqlite_master
30818
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
30819
+ UNION ALL
30820
+ SELECT sql
30821
+ FROM sqlite_temp_master
30822
+ WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'
30823
+ 
30824
+  (0.2ms)  SELECT sql
30825
+ FROM sqlite_master
30826
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
30827
+ UNION ALL
30828
+ SELECT sql
30829
+ FROM sqlite_temp_master
30830
+ WHERE name='index_spree_shipments_on_order_id' AND type='index'
30831
+ 
30832
+  (0.2ms)  SELECT sql
30833
+ FROM sqlite_master
30834
+ WHERE name='index_spree_shipping_categories_on_name' AND type='index'
30835
+ UNION ALL
30836
+ SELECT sql
30837
+ FROM sqlite_temp_master
30838
+ WHERE name='index_spree_shipping_categories_on_name' AND type='index'
30839
+ 
30840
+  (0.2ms)  SELECT sql
30841
+ FROM sqlite_master
30842
+ WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'
30843
+ UNION ALL
30844
+ SELECT sql
30845
+ FROM sqlite_temp_master
30846
+ WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'
30847
+ 
30848
+  (0.2ms)  SELECT sql
30849
+ FROM sqlite_master
30850
+ WHERE name='unique_spree_shipping_method_categories' AND type='index'
30851
+ UNION ALL
30852
+ SELECT sql
30853
+ FROM sqlite_temp_master
30854
+ WHERE name='unique_spree_shipping_method_categories' AND type='index'
30855
+ 
30856
+  (0.2ms)  SELECT sql
30857
+ FROM sqlite_master
30858
+ WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'
30859
+ UNION ALL
30860
+ SELECT sql
30861
+ FROM sqlite_temp_master
30862
+ WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'
30863
+ 
30864
+  (0.2ms)  SELECT sql
30865
+ FROM sqlite_master
30866
+ WHERE name='index_spree_shipping_method_zones_on_shipping_method_id' AND type='index'
30867
+ UNION ALL
30868
+ SELECT sql
30869
+ FROM sqlite_temp_master
30870
+ WHERE name='index_spree_shipping_method_zones_on_shipping_method_id' AND type='index'
30871
+ 
30872
+  (0.2ms)  SELECT sql
30873
+ FROM sqlite_master
30874
+ WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'
30875
+ UNION ALL
30876
+ SELECT sql
30877
+ FROM sqlite_temp_master
30878
+ WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'
30879
+ 
30880
+  (0.2ms)  SELECT sql
30881
+ FROM sqlite_master
30882
+ WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index'
30883
+ UNION ALL
30884
+ SELECT sql
30885
+ FROM sqlite_temp_master
30886
+ WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index'
30887
+ 
30888
+  (0.2ms)  SELECT sql
30889
+ FROM sqlite_master
30890
+ WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'
30891
+ UNION ALL
30892
+ SELECT sql
30893
+ FROM sqlite_temp_master
30894
+ WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'
30895
+ 
30896
+  (0.2ms)  SELECT sql
30897
+ FROM sqlite_master
30898
+ WHERE name='index_spree_shipping_rates_on_shipping_method_id' AND type='index'
30899
+ UNION ALL
30900
+ SELECT sql
30901
+ FROM sqlite_temp_master
30902
+ WHERE name='index_spree_shipping_rates_on_shipping_method_id' AND type='index'
30903
+ 
30904
+  (0.2ms)  SELECT sql
30905
+ FROM sqlite_master
30906
+ WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'
30907
+ UNION ALL
30908
+ SELECT sql
30909
+ FROM sqlite_temp_master
30910
+ WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'
30911
+ 
30912
+  (0.2ms)  SELECT sql
30913
+ FROM sqlite_master
30914
+ WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'
30915
+ UNION ALL
30916
+ SELECT sql
30917
+ FROM sqlite_temp_master
30918
+ WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'
30919
+ 
30920
+  (0.2ms)  SELECT sql
30921
+ FROM sqlite_master
30922
+ WHERE name='index_spree_shipping_rates_on_selected' AND type='index'
30923
+ UNION ALL
30924
+ SELECT sql
30925
+ FROM sqlite_temp_master
30926
+ WHERE name='index_spree_shipping_rates_on_selected' AND type='index'
30927
+ 
30928
+  (0.2ms)  SELECT sql
30929
+ FROM sqlite_master
30930
+ WHERE name='spree_shipping_rates_join_index' AND type='index'
30931
+ UNION ALL
30932
+ SELECT sql
30933
+ FROM sqlite_temp_master
30934
+ WHERE name='spree_shipping_rates_join_index' AND type='index'
30935
+ 
30936
+  (0.2ms)  SELECT sql
30937
+ FROM sqlite_master
30938
+ WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'
30939
+ UNION ALL
30940
+ SELECT sql
30941
+ FROM sqlite_temp_master
30942
+ WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'
30943
+ 
30944
+  (0.2ms)  SELECT sql
30945
+ FROM sqlite_master
30946
+ WHERE name='index_spree_states_on_country_id' AND type='index'
30947
+ UNION ALL
30948
+ SELECT sql
30949
+ FROM sqlite_temp_master
30950
+ WHERE name='index_spree_states_on_country_id' AND type='index'
30951
+ 
30952
+  (0.2ms)  SELECT sql
30953
+ FROM sqlite_master
30954
+ WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'
30955
+ UNION ALL
30956
+ SELECT sql
30957
+ FROM sqlite_temp_master
30958
+ WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'
30959
+ 
30960
+  (0.2ms)  SELECT sql
30961
+ FROM sqlite_master
30962
+ WHERE name='index_spree_stock_items_on_variant_id' AND type='index'
30963
+ UNION ALL
30964
+ SELECT sql
30965
+ FROM sqlite_temp_master
30966
+ WHERE name='index_spree_stock_items_on_variant_id' AND type='index'
30967
+ 
30968
+  (0.2ms)  SELECT sql
30969
+ FROM sqlite_master
30970
+ WHERE name='index_spree_stock_items_on_backorderable' AND type='index'
30971
+ UNION ALL
30972
+ SELECT sql
30973
+ FROM sqlite_temp_master
30974
+ WHERE name='index_spree_stock_items_on_backorderable' AND type='index'
30975
+ 
30976
+  (0.2ms)  SELECT sql
30977
+ FROM sqlite_master
30978
+ WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'
30979
+ UNION ALL
30980
+ SELECT sql
30981
+ FROM sqlite_temp_master
30982
+ WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'
30983
+ 
30984
+  (0.2ms)  SELECT sql
30985
+ FROM sqlite_master
30986
+ WHERE name='stock_item_by_loc_and_var_id' AND type='index'
30987
+ UNION ALL
30988
+ SELECT sql
30989
+ FROM sqlite_temp_master
30990
+ WHERE name='stock_item_by_loc_and_var_id' AND type='index'
30991
+ 
30992
+  (0.2ms)  SELECT sql
30993
+ FROM sqlite_master
30994
+ WHERE name='index_spree_stock_locations_on_state_id' AND type='index'
30995
+ UNION ALL
30996
+ SELECT sql
30997
+ FROM sqlite_temp_master
30998
+ WHERE name='index_spree_stock_locations_on_state_id' AND type='index'
30999
+ 
31000
+  (0.2ms)  SELECT sql
31001
+ FROM sqlite_master
31002
+ WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'
31003
+ UNION ALL
31004
+ SELECT sql
31005
+ FROM sqlite_temp_master
31006
+ WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'
31007
+ 
31008
+  (0.2ms)  SELECT sql
31009
+ FROM sqlite_master
31010
+ WHERE name='index_spree_stock_locations_on_country_id' AND type='index'
31011
+ UNION ALL
31012
+ SELECT sql
31013
+ FROM sqlite_temp_master
31014
+ WHERE name='index_spree_stock_locations_on_country_id' AND type='index'
31015
+ 
31016
+  (0.2ms)  SELECT sql
31017
+ FROM sqlite_master
31018
+ WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'
31019
+ UNION ALL
31020
+ SELECT sql
31021
+ FROM sqlite_temp_master
31022
+ WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'
31023
+ 
31024
+  (0.2ms)  SELECT sql
31025
+ FROM sqlite_master
31026
+ WHERE name='index_spree_stock_locations_on_active' AND type='index'
31027
+ UNION ALL
31028
+ SELECT sql
31029
+ FROM sqlite_temp_master
31030
+ WHERE name='index_spree_stock_locations_on_active' AND type='index'
31031
+ 
31032
+  (0.2ms)  SELECT sql
31033
+ FROM sqlite_master
31034
+ WHERE name='index_stock_movements_on_originator_id_and_originator_type' AND type='index'
31035
+ UNION ALL
31036
+ SELECT sql
31037
+ FROM sqlite_temp_master
31038
+ WHERE name='index_stock_movements_on_originator_id_and_originator_type' AND type='index'
31039
+ 
31040
+  (0.2ms)  SELECT sql
31041
+ FROM sqlite_master
31042
+ WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'
31043
+ UNION ALL
31044
+ SELECT sql
31045
+ FROM sqlite_temp_master
31046
+ WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'
31047
+ 
31048
+  (0.2ms)  SELECT sql
31049
+ FROM sqlite_master
31050
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
31051
+ UNION ALL
31052
+ SELECT sql
31053
+ FROM sqlite_temp_master
31054
+ WHERE name='index_spree_stock_transfers_on_number' AND type='index'
31055
+ 
31056
+  (0.2ms)  SELECT sql
31057
+ FROM sqlite_master
31058
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
31059
+ UNION ALL
31060
+ SELECT sql
31061
+ FROM sqlite_temp_master
31062
+ WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'
31063
+ 
31064
+  (0.2ms)  SELECT sql
31065
+ FROM sqlite_master
31066
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
31067
+ UNION ALL
31068
+ SELECT sql
31069
+ FROM sqlite_temp_master
31070
+ WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'
31071
+ 
31072
+  (0.2ms)  SELECT sql
31073
+ FROM sqlite_master
31074
+ WHERE name='spree_store_credit_events_originator' AND type='index'
31075
+ UNION ALL
31076
+ SELECT sql
31077
+ FROM sqlite_temp_master
31078
+ WHERE name='spree_store_credit_events_originator' AND type='index'
31079
+ 
31080
+  (0.2ms)  SELECT sql
31081
+ FROM sqlite_master
31082
+ WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'
31083
+ UNION ALL
31084
+ SELECT sql
31085
+ FROM sqlite_temp_master
31086
+ WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'
31087
+ 
31088
+  (0.2ms)  SELECT sql
31089
+ FROM sqlite_master
31090
+ WHERE name='index_spree_store_credit_types_on_priority' AND type='index'
31091
+ UNION ALL
31092
+ SELECT sql
31093
+ FROM sqlite_temp_master
31094
+ WHERE name='index_spree_store_credit_types_on_priority' AND type='index'
31095
+ 
31096
+  (0.2ms)  SELECT sql
31097
+ FROM sqlite_master
31098
+ WHERE name='spree_store_credits_originator' AND type='index'
31099
+ UNION ALL
31100
+ SELECT sql
31101
+ FROM sqlite_temp_master
31102
+ WHERE name='spree_store_credits_originator' AND type='index'
31103
+ 
31104
+  (0.2ms)  SELECT sql
31105
+ FROM sqlite_master
31106
+ WHERE name='index_spree_store_credits_on_type_id' AND type='index'
31107
+ UNION ALL
31108
+ SELECT sql
31109
+ FROM sqlite_temp_master
31110
+ WHERE name='index_spree_store_credits_on_type_id' AND type='index'
31111
+ 
31112
+  (0.2ms)  SELECT sql
31113
+ FROM sqlite_master
31114
+ WHERE name='index_spree_store_credits_on_user_id' AND type='index'
31115
+ UNION ALL
31116
+ SELECT sql
31117
+ FROM sqlite_temp_master
31118
+ WHERE name='index_spree_store_credits_on_user_id' AND type='index'
31119
+ 
31120
+  (0.2ms)  SELECT sql
31121
+ FROM sqlite_master
31122
+ WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'
31123
+ UNION ALL
31124
+ SELECT sql
31125
+ FROM sqlite_temp_master
31126
+ WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'
31127
+ 
31128
+  (0.2ms)  SELECT sql
31129
+ FROM sqlite_master
31130
+ WHERE name='index_spree_stores_on_code' AND type='index'
31131
+ UNION ALL
31132
+ SELECT sql
31133
+ FROM sqlite_temp_master
31134
+ WHERE name='index_spree_stores_on_code' AND type='index'
31135
+ 
31136
+  (0.2ms)  SELECT sql
31137
+ FROM sqlite_master
31138
+ WHERE name='index_spree_stores_on_url' AND type='index'
31139
+ UNION ALL
31140
+ SELECT sql
31141
+ FROM sqlite_temp_master
31142
+ WHERE name='index_spree_stores_on_url' AND type='index'
31143
+ 
31144
+  (0.2ms)  SELECT sql
31145
+ FROM sqlite_master
31146
+ WHERE name='index_spree_stores_on_default' AND type='index'
31147
+ UNION ALL
31148
+ SELECT sql
31149
+ FROM sqlite_temp_master
31150
+ WHERE name='index_spree_stores_on_default' AND type='index'
31151
+ 
31152
+  (0.2ms)  SELECT sql
31153
+ FROM sqlite_master
31154
+ WHERE name='spree_taggings_idy' AND type='index'
31155
+ UNION ALL
31156
+ SELECT sql
31157
+ FROM sqlite_temp_master
31158
+ WHERE name='spree_taggings_idy' AND type='index'
31159
+ 
31160
+  (0.2ms)  SELECT sql
31161
+ FROM sqlite_master
31162
+ WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'
31163
+ UNION ALL
31164
+ SELECT sql
31165
+ FROM sqlite_temp_master
31166
+ WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'
31167
+ 
31168
+  (0.2ms)  SELECT sql
31169
+ FROM sqlite_master
31170
+ WHERE name='index_spree_taggings_on_context' AND type='index'
31171
+ UNION ALL
31172
+ SELECT sql
31173
+ FROM sqlite_temp_master
31174
+ WHERE name='index_spree_taggings_on_context' AND type='index'
31175
+ 
31176
+  (0.2ms)  SELECT sql
31177
+ FROM sqlite_master
31178
+ WHERE name='index_spree_taggings_on_tagger_id' AND type='index'
31179
+ UNION ALL
31180
+ SELECT sql
31181
+ FROM sqlite_temp_master
31182
+ WHERE name='index_spree_taggings_on_tagger_id' AND type='index'
31183
+ 
31184
+  (0.2ms)  SELECT sql
31185
+ FROM sqlite_master
31186
+ WHERE name='index_spree_taggings_on_taggable_type' AND type='index'
31187
+ UNION ALL
31188
+ SELECT sql
31189
+ FROM sqlite_temp_master
31190
+ WHERE name='index_spree_taggings_on_taggable_type' AND type='index'
31191
+ 
31192
+  (0.2ms)  SELECT sql
31193
+ FROM sqlite_master
31194
+ WHERE name='index_spree_taggings_on_taggable_id' AND type='index'
31195
+ UNION ALL
31196
+ SELECT sql
31197
+ FROM sqlite_temp_master
31198
+ WHERE name='index_spree_taggings_on_taggable_id' AND type='index'
31199
+ 
31200
+  (0.2ms)  SELECT sql
31201
+ FROM sqlite_master
31202
+ WHERE name='index_spree_taggings_on_tag_id' AND type='index'
31203
+ UNION ALL
31204
+ SELECT sql
31205
+ FROM sqlite_temp_master
31206
+ WHERE name='index_spree_taggings_on_tag_id' AND type='index'
31207
+ 
31208
+  (0.2ms)  SELECT sql
31209
+ FROM sqlite_master
31210
+ WHERE name='spree_taggings_idx' AND type='index'
31211
+ UNION ALL
31212
+ SELECT sql
31213
+ FROM sqlite_temp_master
31214
+ WHERE name='spree_taggings_idx' AND type='index'
31215
+ 
31216
+  (0.2ms)  SELECT sql
31217
+ FROM sqlite_master
31218
+ WHERE name='index_spree_tags_on_name' AND type='index'
31219
+ UNION ALL
31220
+ SELECT sql
31221
+ FROM sqlite_temp_master
31222
+ WHERE name='index_spree_tags_on_name' AND type='index'
31223
+ 
31224
+  (0.2ms)  SELECT sql
31225
+ FROM sqlite_master
31226
+ WHERE name='index_spree_tax_categories_on_is_default' AND type='index'
31227
+ UNION ALL
31228
+ SELECT sql
31229
+ FROM sqlite_temp_master
31230
+ WHERE name='index_spree_tax_categories_on_is_default' AND type='index'
31231
+ 
31232
+  (0.2ms)  SELECT sql
31233
+ FROM sqlite_master
31234
+ WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'
31235
+ UNION ALL
31236
+ SELECT sql
31237
+ FROM sqlite_temp_master
31238
+ WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'
31239
+ 
31240
+  (0.2ms)  SELECT sql
31241
+ FROM sqlite_master
31242
+ WHERE name='index_spree_tax_rates_on_zone_id' AND type='index'
31243
+ UNION ALL
31244
+ SELECT sql
31245
+ FROM sqlite_temp_master
31246
+ WHERE name='index_spree_tax_rates_on_zone_id' AND type='index'
31247
+ 
31248
+  (0.2ms)  SELECT sql
31249
+ FROM sqlite_master
31250
+ WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'
31251
+ UNION ALL
31252
+ SELECT sql
31253
+ FROM sqlite_temp_master
31254
+ WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'
31255
+ 
31256
+  (0.2ms)  SELECT sql
31257
+ FROM sqlite_master
31258
+ WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'
31259
+ UNION ALL
31260
+ SELECT sql
31261
+ FROM sqlite_temp_master
31262
+ WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'
31263
+ 
31264
+  (0.2ms)  SELECT sql
31265
+ FROM sqlite_master
31266
+ WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'
31267
+ UNION ALL
31268
+ SELECT sql
31269
+ FROM sqlite_temp_master
31270
+ WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'
31271
+ 
31272
+  (0.4ms)  SELECT sql
31273
+ FROM sqlite_master
31274
+ WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'
31275
+ UNION ALL
31276
+ SELECT sql
31277
+ FROM sqlite_temp_master
31278
+ WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'
31279
+ 
31280
+  (0.2ms)  SELECT sql
31281
+ FROM sqlite_master
31282
+ WHERE name='index_spree_taxonomies_on_position' AND type='index'
31283
+ UNION ALL
31284
+ SELECT sql
31285
+ FROM sqlite_temp_master
31286
+ WHERE name='index_spree_taxonomies_on_position' AND type='index'
31287
+ 
31288
+  (0.2ms)  SELECT sql
31289
+ FROM sqlite_master
31290
+ WHERE name='index_spree_taxons_on_name' AND type='index'
31291
+ UNION ALL
31292
+ SELECT sql
31293
+ FROM sqlite_temp_master
31294
+ WHERE name='index_spree_taxons_on_name' AND type='index'
31295
+ 
31296
+  (0.2ms)  SELECT sql
31297
+ FROM sqlite_master
31298
+ WHERE name='index_spree_taxons_on_rgt' AND type='index'
31299
+ UNION ALL
31300
+ SELECT sql
31301
+ FROM sqlite_temp_master
31302
+ WHERE name='index_spree_taxons_on_rgt' AND type='index'
31303
+ 
31304
+  (0.2ms)  SELECT sql
31305
+ FROM sqlite_master
31306
+ WHERE name='index_spree_taxons_on_lft' AND type='index'
31307
+ UNION ALL
31308
+ SELECT sql
31309
+ FROM sqlite_temp_master
31310
+ WHERE name='index_spree_taxons_on_lft' AND type='index'
31311
+ 
31312
+  (0.2ms)  SELECT sql
31313
+ FROM sqlite_master
31314
+ WHERE name='index_spree_taxons_on_position' AND type='index'
31315
+ UNION ALL
31316
+ SELECT sql
31317
+ FROM sqlite_temp_master
31318
+ WHERE name='index_spree_taxons_on_position' AND type='index'
31319
+ 
31320
+  (0.2ms)  SELECT sql
31321
+ FROM sqlite_master
31322
+ WHERE name='index_taxons_on_taxonomy_id' AND type='index'
31323
+ UNION ALL
31324
+ SELECT sql
31325
+ FROM sqlite_temp_master
31326
+ WHERE name='index_taxons_on_taxonomy_id' AND type='index'
31327
+ 
31328
+  (0.2ms)  SELECT sql
31329
+ FROM sqlite_master
31330
+ WHERE name='index_taxons_on_permalink' AND type='index'
31331
+ UNION ALL
31332
+ SELECT sql
31333
+ FROM sqlite_temp_master
31334
+ WHERE name='index_taxons_on_permalink' AND type='index'
31335
+ 
31336
+  (0.2ms)  SELECT sql
31337
+ FROM sqlite_master
31338
+ WHERE name='index_taxons_on_parent_id' AND type='index'
31339
+ UNION ALL
31340
+ SELECT sql
31341
+ FROM sqlite_temp_master
31342
+ WHERE name='index_taxons_on_parent_id' AND type='index'
31343
+ 
31344
+  (0.2ms)  SELECT sql
31345
+ FROM sqlite_master
31346
+ WHERE name='index_spree_trackers_on_active' AND type='index'
31347
+ UNION ALL
31348
+ SELECT sql
31349
+ FROM sqlite_temp_master
31350
+ WHERE name='index_spree_trackers_on_active' AND type='index'
31351
+ 
31352
+  (0.2ms)  SELECT sql
31353
+ FROM sqlite_master
31354
+ WHERE name='index_spree_variants_on_discontinue_on' AND type='index'
31355
+ UNION ALL
31356
+ SELECT sql
31357
+ FROM sqlite_temp_master
31358
+ WHERE name='index_spree_variants_on_discontinue_on' AND type='index'
31359
+ 
31360
+  (0.2ms)  SELECT sql
31361
+ FROM sqlite_master
31362
+ WHERE name='index_spree_variants_on_track_inventory' AND type='index'
31363
+ UNION ALL
31364
+ SELECT sql
31365
+ FROM sqlite_temp_master
31366
+ WHERE name='index_spree_variants_on_track_inventory' AND type='index'
31367
+ 
31368
+  (0.2ms)  SELECT sql
31369
+ FROM sqlite_master
31370
+ WHERE name='index_spree_variants_on_position' AND type='index'
31371
+ UNION ALL
31372
+ SELECT sql
31373
+ FROM sqlite_temp_master
31374
+ WHERE name='index_spree_variants_on_position' AND type='index'
31375
+ 
31376
+  (0.2ms)  SELECT sql
31377
+ FROM sqlite_master
31378
+ WHERE name='index_spree_variants_on_is_master' AND type='index'
31379
+ UNION ALL
31380
+ SELECT sql
31381
+ FROM sqlite_temp_master
31382
+ WHERE name='index_spree_variants_on_is_master' AND type='index'
31383
+ 
31384
+  (0.2ms)  SELECT sql
31385
+ FROM sqlite_master
31386
+ WHERE name='index_spree_variants_on_deleted_at' AND type='index'
31387
+ UNION ALL
31388
+ SELECT sql
31389
+ FROM sqlite_temp_master
31390
+ WHERE name='index_spree_variants_on_deleted_at' AND type='index'
31391
+ 
31392
+  (0.2ms)  SELECT sql
31393
+ FROM sqlite_master
31394
+ WHERE name='index_spree_variants_on_tax_category_id' AND type='index'
31395
+ UNION ALL
31396
+ SELECT sql
31397
+ FROM sqlite_temp_master
31398
+ WHERE name='index_spree_variants_on_tax_category_id' AND type='index'
31399
+ 
31400
+  (0.2ms)  SELECT sql
31401
+ FROM sqlite_master
31402
+ WHERE name='index_spree_variants_on_sku' AND type='index'
31403
+ UNION ALL
31404
+ SELECT sql
31405
+ FROM sqlite_temp_master
31406
+ WHERE name='index_spree_variants_on_sku' AND type='index'
31407
+ 
31408
+  (0.2ms)  SELECT sql
31409
+ FROM sqlite_master
31410
+ WHERE name='index_spree_variants_on_product_id' AND type='index'
31411
+ UNION ALL
31412
+ SELECT sql
31413
+ FROM sqlite_temp_master
31414
+ WHERE name='index_spree_variants_on_product_id' AND type='index'
31415
+ 
31416
+  (0.2ms)  SELECT sql
31417
+ FROM sqlite_master
31418
+ WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index'
31419
+ UNION ALL
31420
+ SELECT sql
31421
+ FROM sqlite_temp_master
31422
+ WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index'
31423
+ 
31424
+  (0.2ms)  SELECT sql
31425
+ FROM sqlite_master
31426
+ WHERE name='index_spree_zone_members_on_zone_id' AND type='index'
31427
+ UNION ALL
31428
+ SELECT sql
31429
+ FROM sqlite_temp_master
31430
+ WHERE name='index_spree_zone_members_on_zone_id' AND type='index'
31431
+ 
31432
+  (0.2ms)  SELECT sql
31433
+ FROM sqlite_master
31434
+ WHERE name='index_spree_zones_on_kind' AND type='index'
31435
+ UNION ALL
31436
+ SELECT sql
31437
+ FROM sqlite_temp_master
31438
+ WHERE name='index_spree_zones_on_kind' AND type='index'
31439
+ 
31440
+  (0.2ms)  SELECT sql
31441
+ FROM sqlite_master
31442
+ WHERE name='index_spree_zones_on_default_tax' AND type='index'
31443
+ UNION ALL
31444
+ SELECT sql
31445
+ FROM sqlite_temp_master
31446
+ WHERE name='index_spree_zones_on_default_tax' AND type='index'
31447
+ 
31448
+  (0.1ms) begin transaction
31449
+  (0.2ms) SAVEPOINT active_record_1
31450
+ Spree::PaymentMethod Load (0.4ms) 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]]
31451
+ SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:32.961036"], ["updated_at", "2018-05-16 19:18:32.961036"], ["position", 2]]
31452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31453
+  (0.2ms) SAVEPOINT active_record_1
31454
+ SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.013653"], ["updated_at", "2018-05-16 19:18:33.013653"], ["payment_method_id", 2]]
31455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31456
+  (0.1ms) SAVEPOINT active_record_1
31457
+ Spree::PaymentMethod Load (0.4ms) 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]]
31458
+ SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.020588"], ["updated_at", "2018-05-16 19:18:33.020588"], ["position", 3]]
31459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31460
+ Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]
31461
+  (0.2ms) SAVEPOINT active_record_1
31462
+ Spree::Country Exists (0.3ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_1"], ["LIMIT", 1]]
31463
+ Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_1"], ["LIMIT", 1]]
31464
+ SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_1"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_1"], ["numcode", 840], ["updated_at", "2018-05-16 19:18:33.166709"]]
31465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31466
+  (0.1ms) SAVEPOINT active_record_1
31467
+ Spree::State Exists (0.3ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_1"], ["country_id", 1], ["LIMIT", 1]]
31468
+ Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_1"], ["country_id", 1], ["LIMIT", 1]]
31469
+ SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_1"], ["abbr", "STATE_ABBR_1"], ["country_id", 1], ["updated_at", "2018-05-16 19:18:33.176478"]]
31470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31471
+  (0.1ms) SAVEPOINT active_record_1
31472
+ SQL (0.4ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 19:18:33.243098"], ["updated_at", "2018-05-16 19:18:33.243098"]]
31473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31474
+  (0.2ms) SAVEPOINT active_record_1
31475
+ Spree::Store Exists (0.3ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_1"], ["LIMIT", 1]]
31476
+  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]]
31477
+ SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_1"], ["created_at", "2018-05-16 19:18:33.274455"], ["updated_at", "2018-05-16 19:18:33.274455"]]
31478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31479
+  (0.1ms) SAVEPOINT active_record_1
31480
+ Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R416364021"], ["LIMIT", 1]]
31481
+ Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R416364021"], ["LIMIT", 1]]
31482
+ Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R416364021"], ["LIMIT", 1]]
31483
+ Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "y-haMnL5lrY0kLdUqH9O0g1526498313288"], ["LIMIT", 1]]
31484
+ SQL (0.6ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R416364021"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 19:18:33.288480"], ["updated_at", "2018-05-16 19:18:33.288480"], ["currency", "USD"], ["guest_token", "y-haMnL5lrY0kLdUqH9O0g1526498313288"], ["store_id", 2]]
31485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31486
+  (0.1ms) SAVEPOINT active_record_1
31487
+ Spree::Payment Exists (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PK1KLVEK"], ["LIMIT", 1]]
31488
+ Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PK1KLVEK"], ["LIMIT", 1]]
31489
+ Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PK1KLVEK"], ["LIMIT", 1]]
31490
+ SQL (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", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 19:18:33.306094"], ["updated_at", "2018-05-16 19:18:33.306094"], ["number", "PK1KLVEK"]]
31491
+ Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]]
31492
+ SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 19:18:33.308434"], ["id", 1]]
31493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31494
+  (0.4ms) rollback transaction
31495
+  (0.1ms) begin transaction
31496
+  (0.2ms) SAVEPOINT active_record_1
31497
+ Spree::PaymentMethod Load (0.5ms) 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]]
31498
+ SQL (0.6ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.351098"], ["updated_at", "2018-05-16 19:18:33.351098"], ["position", 2]]
31499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31500
+  (0.1ms) SAVEPOINT active_record_1
31501
+ SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.358843"], ["updated_at", "2018-05-16 19:18:33.358843"], ["payment_method_id", 2]]
31502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31503
+  (0.2ms) SAVEPOINT active_record_1
31504
+ 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]]
31505
+ SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.364101"], ["updated_at", "2018-05-16 19:18:33.364101"], ["position", 3]]
31506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31507
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]
31508
+  (0.1ms) SAVEPOINT active_record_1
31509
+ Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_2"], ["LIMIT", 1]]
31510
+ Spree::Country Exists (0.3ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_2"], ["LIMIT", 1]]
31511
+ SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_2"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_2"], ["numcode", 840], ["updated_at", "2018-05-16 19:18:33.375229"]]
31512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31513
+  (0.1ms) SAVEPOINT active_record_1
31514
+ Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_2"], ["country_id", 1], ["LIMIT", 1]]
31515
+ Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_2"], ["country_id", 1], ["LIMIT", 1]]
31516
+ SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_2"], ["abbr", "STATE_ABBR_2"], ["country_id", 1], ["updated_at", "2018-05-16 19:18:33.380079"]]
31517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31518
+  (0.1ms) SAVEPOINT active_record_1
31519
+ SQL (0.3ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 19:18:33.383153"], ["updated_at", "2018-05-16 19:18:33.383153"]]
31520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31521
+  (0.1ms) SAVEPOINT active_record_1
31522
+ Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_2"], ["LIMIT", 1]]
31523
+  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]]
31524
+ SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_2"], ["created_at", "2018-05-16 19:18:33.389473"], ["updated_at", "2018-05-16 19:18:33.389473"]]
31525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31526
+  (0.4ms) SAVEPOINT active_record_1
31527
+ Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R519377222"], ["LIMIT", 1]]
31528
+ Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R519377222"], ["LIMIT", 1]]
31529
+ Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R519377222"], ["LIMIT", 1]]
31530
+ Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "6zwg5gu2XF7xCgfnW3CBEg1526498313398"], ["LIMIT", 1]]
31531
+ SQL (0.4ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R519377222"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 19:18:33.398691"], ["updated_at", "2018-05-16 19:18:33.398691"], ["currency", "USD"], ["guest_token", "6zwg5gu2XF7xCgfnW3CBEg1526498313398"], ["store_id", 2]]
31532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31533
+  (0.1ms) SAVEPOINT active_record_1
31534
+ Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PO67NM2M"], ["LIMIT", 1]]
31535
+ Spree::Payment Exists (0.5ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PO67NM2M"], ["LIMIT", 1]]
31536
+ Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PO67NM2M"], ["LIMIT", 1]]
31537
+ SQL (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", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "pending"], ["response_code", "12345"], ["created_at", "2018-05-16 19:18:33.407603"], ["updated_at", "2018-05-16 19:18:33.407603"], ["number", "PO67NM2M"]]
31538
+ Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]]
31539
+ SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 19:18:33.410145"], ["id", 1]]
31540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31541
+  (0.4ms) rollback transaction
31542
+  (0.1ms) begin transaction
31543
+  (0.1ms) rollback transaction
31544
+  (0.1ms) begin transaction
31545
+  (0.1ms) SAVEPOINT active_record_1
31546
+ SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.425215"], ["updated_at", "2018-05-16 19:18:33.425215"]]
31547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31548
+  (0.2ms) rollback transaction
31549
+  (0.1ms) begin transaction
31550
+  (0.1ms) rollback transaction
31551
+  (0.1ms) begin transaction
31552
+  (0.1ms) rollback transaction
31553
+  (0.1ms) begin transaction
31554
+  (0.1ms) SAVEPOINT active_record_1
31555
+ Spree::PaymentMethod Load (0.4ms) 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]]
31556
+ SQL (0.4ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.586472"], ["updated_at", "2018-05-16 19:18:33.586472"], ["position", 2]]
31557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31558
+  (0.3ms) SAVEPOINT active_record_1
31559
+ SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.593895"], ["updated_at", "2018-05-16 19:18:33.593895"], ["payment_method_id", 2]]
31560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31561
+  (0.1ms) SAVEPOINT active_record_1
31562
+ 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]]
31563
+ SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.598663"], ["updated_at", "2018-05-16 19:18:33.598663"], ["position", 3]]
31564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31565
+ Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]
31566
+  (0.1ms) SAVEPOINT active_record_1
31567
+ Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_3"], ["LIMIT", 1]]
31568
+ Spree::Country Exists (0.1ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_3"], ["LIMIT", 1]]
31569
+ SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_3"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_3"], ["numcode", 840], ["updated_at", "2018-05-16 19:18:33.609282"]]
31570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31571
+  (0.1ms) SAVEPOINT active_record_1
31572
+ Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_3"], ["country_id", 1], ["LIMIT", 1]]
31573
+ Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_3"], ["country_id", 1], ["LIMIT", 1]]
31574
+ SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_3"], ["abbr", "STATE_ABBR_3"], ["country_id", 1], ["updated_at", "2018-05-16 19:18:33.614042"]]
31575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31576
+  (0.1ms) SAVEPOINT active_record_1
31577
+ SQL (0.3ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 19:18:33.617409"], ["updated_at", "2018-05-16 19:18:33.617409"]]
31578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31579
+  (0.1ms) SAVEPOINT active_record_1
31580
+ Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_3"], ["LIMIT", 1]]
31581
+  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]]
31582
+ SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_3"], ["created_at", "2018-05-16 19:18:33.622758"], ["updated_at", "2018-05-16 19:18:33.622758"]]
31583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31584
+  (0.1ms) SAVEPOINT active_record_1
31585
+ Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R185026853"], ["LIMIT", 1]]
31586
+ Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R185026853"], ["LIMIT", 1]]
31587
+ Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R185026853"], ["LIMIT", 1]]
31588
+ Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "PDUW9D6TmbZ-988eqTDaCA1526498313631"], ["LIMIT", 1]]
31589
+ SQL (0.5ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R185026853"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 19:18:33.631300"], ["updated_at", "2018-05-16 19:18:33.631300"], ["currency", "USD"], ["guest_token", "PDUW9D6TmbZ-988eqTDaCA1526498313631"], ["store_id", 2]]
31590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31591
+  (0.1ms) SAVEPOINT active_record_1
31592
+ Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PLU9WGWH"], ["LIMIT", 1]]
31593
+ Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PLU9WGWH"], ["LIMIT", 1]]
31594
+ Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PLU9WGWH"], ["LIMIT", 1]]
31595
+ SQL (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", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 19:18:33.640772"], ["updated_at", "2018-05-16 19:18:33.640772"], ["number", "PLU9WGWH"]]
31596
+ Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]]
31597
+ SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 19:18:33.643853"], ["id", 1]]
31598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31599
+  (0.4ms) rollback transaction